European Parliament MCP Server API - v1.4.23
    Preparing search index...

    Structured error class that all MCP tools use for consistent error reporting. Ensures tool name, operation, and safe context are always included without leaking internal implementation details to clients.

    Hierarchy

    Index
    • Parameters

      • options: {
            message: string;
            operation: string;
            toolName: string;
            cause?: unknown;
            errorCategory?: ErrorCategory;
            errorCode?: ErrorCode;
            httpStatus?: number;
            isRetryable?: boolean;
        }

      Returns ToolError

    isRetryable: boolean
    operation: string
    toolName: string
    cause?: Error
    errorCategory?: ErrorCategory
    errorCode?: ErrorCode
    httpStatus?: number