MCP Server Framework - v1.0.0
    Preparing search index...

    Interface BaseErrorOptions

    Base options for creating errors.

    interface BaseErrorOptions {
        cause?: Error;
        code?: string;
        context?: Record<string, unknown>;
        mcpCode?: ErrorCode;
        recoveryHint?: string;
        statusCode?: number;
    }
    Index

    Properties

    cause?: Error

    Original error that caused this

    code?: string

    Application error code

    context?: Record<string, unknown>

    Additional context for debugging

    mcpCode?: ErrorCode

    MCP error code override

    recoveryHint?: string

    Recovery hint for users

    statusCode?: number

    HTTP status code override