UNPKG

@iyulab/oops

Version:

Core SDK for Oops - Safe text file editing with automatic backup

36 lines 1.48 kB
/** * Error classes for Oops */ export declare class OopsError extends Error { readonly code: string; readonly details: Record<string, any>; constructor(message: string, code: string, details?: Record<string, any>); } export declare class FileNotFoundError extends OopsError { constructor(filePath: string, details?: Record<string, any>); } export declare class FileAlreadyTrackedError extends OopsError { constructor(filePath: string, details?: Record<string, any>); } export declare class FileNotTrackedError extends OopsError { constructor(filePath: string, details?: Record<string, any>); } export declare class WorkspaceNotFoundError extends OopsError { constructor(workspacePath: string, details?: Record<string, any>); } export declare class WorkspaceCorruptedError extends OopsError { constructor(workspacePath: string, details?: Record<string, any>); } export declare class GitOperationError extends OopsError { constructor(operation: string, details?: Record<string, any>); } export declare class ValidationError extends OopsError { constructor(message: string, details?: Record<string, any>); } export declare class PermissionError extends OopsError { constructor(path: string, operation: string, details?: Record<string, any>); } export declare class FileOperationError extends OopsError { constructor(operation: string, path: string, message: string, details?: Record<string, any>); } //# sourceMappingURL=errors.d.ts.map