pgit-cli
Version:
Private file tracking with dual git repositories
52 lines • 1.17 kB
JavaScript
import { BaseError } from './base.error.js';
/**
* File system related errors
*/
export class FileSystemError extends BaseError {
constructor() {
super(...arguments);
this.code = 'FILESYSTEM_ERROR';
this.recoverable = true;
}
}
/**
* Path validation errors
*/
export class InvalidPathError extends BaseError {
constructor() {
super(...arguments);
this.code = 'INVALID_PATH';
this.recoverable = true;
}
}
/**
* Permission denied errors
*/
export class PermissionError extends BaseError {
constructor() {
super(...arguments);
this.code = 'PERMISSION_DENIED';
this.recoverable = true;
}
}
/**
* File not found errors
*/
export class FileNotFoundError extends BaseError {
constructor() {
super(...arguments);
this.code = 'FILE_NOT_FOUND';
this.recoverable = true;
}
}
/**
* Atomic operation failure
*/
export class AtomicOperationError extends BaseError {
constructor() {
super(...arguments);
this.code = 'ATOMIC_OPERATION_FAILED';
this.recoverable = true;
}
}
//# sourceMappingURL=filesystem.error.js.map