/** * Custom error classes for the MCP Codebase Index server */ /** * Base error class for all custom errors */ export declare class CodebaseIndexError extends Error { readonly code?: string | undefined; constructor(message: string, code?: string | undefined); } /** * Configuration-related errors */ export declare class ConfigurationError extends CodebaseIndexError { constructor(message: string); } /** * Parsing-related errors */ export declare class ParsingError extends CodebaseIndexError { readonly file?: string | undefined; constructor(message: string, file?: string | undefined); } /** * Embedding-related errors */ export declare class EmbeddingError extends CodebaseIndexError { readonly provider?: string | undefined; constructor(message: string, provider?: string | undefined); } /** * Storage-related errors */ export declare class StorageError extends CodebaseIndexError { constructor(message: string); } /** * Indexing-related errors */ export declare class IndexingError extends CodebaseIndexError { readonly file?: string | undefined; constructor(message: string, file?: string | undefined); } /** * Search-related errors */ export declare class SearchError extends CodebaseIndexError { constructor(message: string); } /** * Validation-related errors */ export declare class ValidationError extends CodebaseIndexError { readonly field?: string | undefined; constructor(message: string, field?: string | undefined); } /** * Network-related errors */ export declare class NetworkError extends CodebaseIndexError { readonly url?: string | undefined; constructor(message: string, url?: string | undefined); } /** * File system-related errors */ export declare class FileSystemError extends CodebaseIndexError { readonly path?: string | undefined; constructor(message: string, path?: string | undefined); } /** * Check if an error is a known error type */ export declare function isKnownError(error: unknown): error is CodebaseIndexError; /** * Format error for user display */ export declare function formatError(error: unknown): string; /** * Extract error message from unknown error */ export declare function getErrorMessage(error: unknown): string; /** * Create a retry-able error wrapper */ export declare class RetryableError extends CodebaseIndexError { readonly retryAfter?: number | undefined; constructor(message: string, retryAfter?: number | undefined); } //# sourceMappingURL=errors.d.ts.map