frappe-mcp-server
Version:
Enhanced Model Context Protocol server for Frappe Framework with comprehensive API instructions and helper tools
16 lines (15 loc) • 498 B
TypeScript
import { AxiosError } from "axios";
/**
* Error class for Frappe API errors
*/
export declare class FrappeApiError extends Error {
statusCode?: number;
endpoint?: string;
details?: any;
constructor(message: string, statusCode?: number, endpoint?: string, details?: any);
static fromAxiosError(error: AxiosError, operation: string): FrappeApiError;
}
/**
* Helper function to handle API errors
*/
export declare function handleApiError(error: any, operation: string): never;