MCP Apps Kit - v0.5.0
    Preparing search index...

    Class UIError

    Custom error class for UI client operations

    Provides structured error information for client-side error handling.

    Hierarchy

    • Error
      • UIError
    Index

    Constructors

    Properties

    Methods

    Constructors

    • Create a new UIError

      Parameters

      • code: UIErrorCodeType

        Error code from UIErrorCode enum

      • message: string

        Human-readable error message

      • Optionaldetails: Record<string, unknown>

        Optional additional error details

      • Optionalcause: Error

        Optional underlying error

      Returns UIError

    Properties

    cause?: Error

    Optional underlying error

    Error code from UIErrorCode enum

    details?: Record<string, unknown>

    Optional additional error details

    Methods

    • Format error message with code and details

      Returns string