UNPKG

@ordojs/cli

Version:

Command-line interface for OrdoJS framework

36 lines 1.09 kB
/** * @fileoverview OrdoJS CLI - Error handling utilities */ /** * Error types */ export declare enum ErrorType { VALIDATION = "validation", COMPILATION = "compilation", RUNTIME = "runtime", SYSTEM = "system", DEPLOYMENT = "deployment", UNKNOWN = "unknown" } /** * CLI error class */ export declare class CLIError extends Error { type: ErrorType; code?: string | undefined; suggestions?: string[] | undefined; constructor(message: string, type?: ErrorType, code?: string | undefined, suggestions?: string[] | undefined); } /** * Format an error message with line and column information */ export declare function formatErrorWithLocation(message: string, filePath: string, line?: number, column?: number): string; /** * Format a compilation error */ export declare function formatCompilationError(message: string, filePath: string, line?: number, column?: number, code?: string, suggestions?: string[]): string; /** * Handle and report errors */ export declare function handleError(error: unknown): never; //# sourceMappingURL=error.d.ts.map