mirror of
https://github.com/czlonkowski/n8n-mcp.git
synced 2026-03-20 01:13:07 +00:00
chore: add pre-built dist folder for npx usage
This commit is contained in:
committed by
Romuald Członkowski
parent
a70d96a373
commit
5057481e70
24
dist/utils/error-handler.d.ts
vendored
Normal file
24
dist/utils/error-handler.d.ts
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
export declare class MCPError extends Error {
|
||||
code: string;
|
||||
statusCode?: number;
|
||||
data?: any;
|
||||
constructor(message: string, code: string, statusCode?: number, data?: any);
|
||||
}
|
||||
export declare class N8NConnectionError extends MCPError {
|
||||
constructor(message: string, data?: any);
|
||||
}
|
||||
export declare class AuthenticationError extends MCPError {
|
||||
constructor(message?: string);
|
||||
}
|
||||
export declare class ValidationError extends MCPError {
|
||||
constructor(message: string, data?: any);
|
||||
}
|
||||
export declare class ToolNotFoundError extends MCPError {
|
||||
constructor(toolName: string);
|
||||
}
|
||||
export declare class ResourceNotFoundError extends MCPError {
|
||||
constructor(resourceUri: string);
|
||||
}
|
||||
export declare function handleError(error: any): MCPError;
|
||||
export declare function withErrorHandling<T>(operation: () => Promise<T>, context: string): Promise<T>;
|
||||
//# sourceMappingURL=error-handler.d.ts.map
|
||||
Reference in New Issue
Block a user