/** * Enterprise Exception Hierarchy for Lemma AI Gateway */ export declare enum LemmaErrorCode { CONFIG_INVALID = "LEMMA_CONFIG_INVALID", CONNECTION_FAILED = "LEMMA_CONNECTION_FAILED", CACHE_OPERATION_FAILED = "LEMMA_CACHE_OPERATION_FAILED", SECURITY_BREACH = "LEMMA_SECURITY_BREACH", ROUTING_TIMEOUT = "LEMMA_ROUTING_TIMEOUT", UNEXPECTED = "LEMMA_UNEXPECTED" } /** * Base enterprise exception for all custom Lemma errors. * Includes explicit error code, ISO timestamp, context trace details, and inner error wrapping. */ export declare class LemmaError extends Error { readonly code: LemmaErrorCode; readonly timestamp: string; readonly context?: Record; constructor(message: string, code: LemmaErrorCode, context?: Record, cause?: Error | any); } /** * Thrown when environment configurations, ports, or similarity parameters are invalid. */ export declare class ConfigurationError extends LemmaError { constructor(message: string, context?: Record); } /** * Thrown when connectivity fails to critical database or upstream models (ChromaDB, Ollama, OpenAI, Anthropic). */ export declare class ConnectionError extends LemmaError { constructor(message: string, provider: string, cause?: Error | any); } /** * Thrown when caching engines encounter vector insertion or semantic search failures. */ export declare class CacheError extends LemmaError { constructor(message: string, taskId?: string, cause?: Error | any); } /** * Thrown when sanitization blocks messages, origin limits trigger, or key verification fails. */ export declare class SecurityError extends LemmaError { constructor(message: string, context?: Record); } /** * Thrown when agent discovery fails or task routers timeout due to missing capabilities. */ export declare class RoutingError extends LemmaError { constructor(message: string, taskId: string, context?: Record); } //# sourceMappingURL=LemmaError.d.ts.map