UNPKG

@notjustcoders/ioc-arise

Version:

Arise type-safe IoC containers from your code. Zero overhead, zero coupling.

44 lines 1.39 kB
/** * IoC Arise CLI Error System * * This module provides a comprehensive error handling system with: * - Custom error codes for different error categories * - Structured error classes with context and suggestions * - Factory functions for creating specific errors * - Consistent error formatting and logging */ import { IoCError } from './IoCError.js'; export { IoCError, IoCErrorCode, ErrorSeverity, ConfigError, AnalysisError, GenerationError, ValidationError, FileSystemError } from './IoCError.js'; export type { ErrorContext } from './IoCError.js'; export { ErrorFactory } from './errorFactory.js'; /** * Utility functions for error handling */ export declare class ErrorUtils { private static IoCError; /** * Check if an error is an IoC error */ static isIoCError(error: any): error is IoCError; /** * Get error code from any error */ static getErrorCode(error: any): string | undefined; /** * Format error for console output */ static formatForConsole(error: any): string; /** * Extract stack trace from error */ static getStackTrace(error: any): string | undefined; /** * Check if error is critical */ static isCritical(error: any): boolean; /** * Get suggestions from error */ static getSuggestions(error: any): string[]; } //# sourceMappingURL=index.d.ts.map