/** * Base errors for the Expozr ecosystem */ export declare class ExpozrError extends Error { readonly code: string; readonly context?: any; constructor(message: string, code: string, context?: any); } /** * Thrown when a expozr cannot be found or accessed */ export declare class ExpozrNotFoundError extends ExpozrError { constructor(expozrName: string, context?: any); } /** * Thrown when a specific cargo cannot be found in a expozr */ export declare class CargoNotFoundError extends ExpozrError { constructor(cargoName: string, expozrName: string, context?: any); } /** * Thrown when there are dependency resolution issues */ export declare class DependencyResolutionError extends ExpozrError { constructor(dependency: string, context?: any); } /** * Thrown when loading operations timeout */ export declare class LoadTimeoutError extends ExpozrError { constructor(resource: string, timeout: number, context?: any); } /** * Thrown when network operations fail */ export declare class NetworkError extends ExpozrError { constructor(url: string, originalError?: Error, context?: any); } /** * Thrown when there are version compatibility issues */ export declare class VersionMismatchError extends ExpozrError { constructor(required: string, found: string, context?: any); } /** * Thrown when inventory or catalog data is invalid */ export declare class InvalidManifestError extends ExpozrError { constructor(manifestType: "inventory" | "catalog", reason: string, context?: any); } /** * Thrown when cache operations fail */ export declare class CacheError extends ExpozrError { constructor(operation: string, reason?: string, context?: any); } /** * Thrown when security policies are violated */ export declare class SecurityError extends ExpozrError { constructor(violation: string, context?: any); } /** * Error codes enum for easier reference */ export declare enum ErrorCodes { EXPOZR_NOT_FOUND = "EXPOZR_NOT_FOUND", CARGO_NOT_FOUND = "CARGO_NOT_FOUND", DEPENDENCY_RESOLUTION_ERROR = "DEPENDENCY_RESOLUTION_ERROR", LOAD_TIMEOUT = "LOAD_TIMEOUT", NETWORK_ERROR = "NETWORK_ERROR", VERSION_MISMATCH = "VERSION_MISMATCH", INVALID_MANIFEST = "INVALID_MANIFEST", CACHE_ERROR = "CACHE_ERROR", SECURITY_ERROR = "SECURITY_ERROR" } //# sourceMappingURL=errors.d.ts.map