UNPKG

@quasarbright/projection

Version:

A static site generator that creates a beautiful, interactive gallery to showcase your coding projects. Features search, filtering, tags, responsive design, and an admin UI.

27 lines 913 B
/** * Custom error class for Projection-specific errors */ export declare class ProjectionError extends Error { /** Error code for categorization */ readonly code: string; /** Additional error details */ readonly details: Record<string, any>; constructor(message: string, code: string, details?: Record<string, any>); /** * Formats the error as a user-friendly message */ toUserMessage(): string; } /** * Error codes for different error categories */ export declare const ErrorCodes: { readonly VALIDATION_ERROR: "VALIDATION_ERROR"; readonly CONFIG_ERROR: "CONFIG_ERROR"; readonly FILE_NOT_FOUND: "FILE_NOT_FOUND"; readonly FILE_WRITE_ERROR: "FILE_WRITE_ERROR"; readonly PARSE_ERROR: "PARSE_ERROR"; readonly RUNTIME_ERROR: "RUNTIME_ERROR"; }; export type ErrorCode = typeof ErrorCodes[keyof typeof ErrorCodes]; //# sourceMappingURL=errors.d.ts.map