UNPKG

@necto-ai/pgit

Version:

Private file tracking with dual git repositories

60 lines 1.66 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.AtomicOperationError = exports.FileNotFoundError = exports.PermissionError = exports.InvalidPathError = exports.FileSystemError = void 0; const base_error_1 = require("./base.error"); /** * File system related errors */ class FileSystemError extends base_error_1.BaseError { constructor() { super(...arguments); this.code = 'FILESYSTEM_ERROR'; this.recoverable = true; } } exports.FileSystemError = FileSystemError; /** * Path validation errors */ class InvalidPathError extends base_error_1.BaseError { constructor() { super(...arguments); this.code = 'INVALID_PATH'; this.recoverable = true; } } exports.InvalidPathError = InvalidPathError; /** * Permission denied errors */ class PermissionError extends base_error_1.BaseError { constructor() { super(...arguments); this.code = 'PERMISSION_DENIED'; this.recoverable = true; } } exports.PermissionError = PermissionError; /** * File not found errors */ class FileNotFoundError extends base_error_1.BaseError { constructor() { super(...arguments); this.code = 'FILE_NOT_FOUND'; this.recoverable = true; } } exports.FileNotFoundError = FileNotFoundError; /** * Atomic operation failure */ class AtomicOperationError extends base_error_1.BaseError { constructor() { super(...arguments); this.code = 'ATOMIC_OPERATION_FAILED'; this.recoverable = true; } } exports.AtomicOperationError = AtomicOperationError; //# sourceMappingURL=filesystem.error.js.map