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

    Interface ValidationErrorOptions

    Options for validation errors.

    interface ValidationErrorOptions {
        cause?: Error;
        context?: Record<string, unknown>;
        expected?: string;
        field?: string;
        issues?: ValidationIssue[];
        mcpCode?: ErrorCode;
        recoveryHint?: string;
        statusCode?: number;
        value?: unknown;
    }

    Hierarchy

    Index

    Properties

    cause?: Error

    Original error that caused this

    context?: Record<string, unknown>

    Additional context for debugging

    expected?: string

    Expected type or format

    field?: string

    The field that failed validation

    issues?: ValidationIssue[]

    Multiple validation issues

    mcpCode?: ErrorCode

    MCP error code override

    recoveryHint?: string

    Recovery hint for users

    statusCode?: number

    HTTP status code override

    value?: unknown

    The value that failed validation (will be sanitized)