UNPKG

@zxkane/quip-mcp-server

Version:

MCP server for interacting with Quip spreadsheets

70 lines (69 loc) 1.56 kB
/** * Error handling for the Quip MCP Server */ /** * Base error class for the Quip MCP Server */ export declare class QuipMCPError extends Error { /** * Error code for JSON-RPC response */ code: number; /** * Additional error data */ data?: any; constructor(message: string, code?: number, data?: any); /** * Convert error to JSON-RPC error object */ toJsonRpcError(): any; } /** * Error for invalid request parameters */ export declare class InvalidParamsError extends QuipMCPError { constructor(message: string, data?: any); } /** * Error for method not found */ export declare class MethodNotFoundError extends QuipMCPError { constructor(method: string); } /** * Error for parse errors */ export declare class ParseError extends QuipMCPError { constructor(message?: string); } /** * Error for authentication failures */ export declare class AuthenticationError extends QuipMCPError { constructor(message?: string); } /** * Error for resource not found */ export declare class ResourceNotFoundError extends QuipMCPError { constructor(uri: string); } /** * Error for Quip API errors */ export declare class QuipApiError extends QuipMCPError { constructor(message: string, data?: any); } /** * Error for storage errors */ export declare class StorageError extends QuipMCPError { constructor(message: string, data?: any); } /** * Error for timeout errors */ export declare class TimeoutError extends QuipMCPError { constructor(message?: string); }