/** * Custom error classes for the Architecture Diagram Generator * Provides descriptive error messages with context information */ /** * Base error class for all generator errors */ export declare class GeneratorError extends Error { code: string; context?: Record | undefined; constructor(message: string, code: string, context?: Record | undefined); /** * Returns a formatted error message with context */ getFormattedMessage(): string; } /** * Error thrown when a file cannot be read */ export declare class FileReadError extends GeneratorError { constructor(filePath: string, originalError: Error); } /** * Error thrown when a file cannot be written */ export declare class FileWriteError extends GeneratorError { constructor(filePath: string, originalError: Error); } /** * Error thrown when a file cannot be accessed */ export declare class FileAccessError extends GeneratorError { constructor(filePath: string, reason?: string); } /** * Error thrown when parsing TypeScript/JavaScript fails */ export declare class ParseError extends GeneratorError { constructor(filePath: string, message: string, lineNumber?: number, columnNumber?: number); } /** * Error thrown when configuration is invalid */ export declare class ConfigurationError extends GeneratorError { constructor(message: string, configPath?: string); } /** * Error thrown when project root is invalid */ export declare class InvalidProjectRootError extends GeneratorError { constructor(projectRoot: string); } /** * Error thrown when no files are found */ export declare class NoFilesFoundError extends GeneratorError { constructor(projectRoot: string); } /** * Error thrown when diagram generation fails */ export declare class DiagramGenerationError extends GeneratorError { constructor(message: string, details?: string); } /** * Error thrown when output directory cannot be created */ export declare class OutputDirectoryError extends GeneratorError { constructor(outputDir: string, originalError: Error); } /** * Error thrown when a critical operation fails */ export declare class CriticalError extends GeneratorError { constructor(message: string, originalError?: Error); } //# sourceMappingURL=errors.d.ts.map