UNPKG

mcp-talent-server

Version:

Model Context Protocol server for talent management tools

22 lines 1.07 kB
export declare class RAGError extends Error { readonly code: string; readonly context?: Record<string, any>; constructor(message: string, code: string, context?: Record<string, any>); } export declare class VectorStoreError extends RAGError { constructor(message: string, context?: Record<string, any>); } export declare class ToolExecutionError extends RAGError { constructor(toolName: string, message: string, context?: Record<string, any>); } export declare class ValidationError extends RAGError { constructor(message: string, context?: Record<string, any>); } export declare function handleAsyncError<T>(operation: () => Promise<T>, errorType: new (message: string, context?: Record<string, any>) => RAGError, context?: Record<string, any>): Promise<T>; export declare function createErrorResponse(error: any, defaultMessage?: string): { error: string; code?: string; context?: Record<string, any>; }; export declare function logError(error: any, context?: Record<string, any>): void; //# sourceMappingURL=error-handler.util.d.ts.map