Skip to content

Class: Error

A JSON-RPC error object.

URI: mcp:Error

 classDiagram
    class Error
    click Error href "../Error/"
      Error <|-- InternalError
        click InternalError href "../InternalError/"
      Error <|-- InvalidParamsError
        click InvalidParamsError href "../InvalidParamsError/"
      Error <|-- InvalidRequestError
        click InvalidRequestError href "../InvalidRequestError/"
      Error <|-- MethodNotFoundError
        click MethodNotFoundError href "../MethodNotFoundError/"
      Error <|-- ParseError
        click ParseError href "../ParseError/"

      Error : code

      Error : data





        Error --> "0..1" ErrorData : data
        click ErrorData href "../ErrorData/"



      Error : message

Inheritance

Slots

Name Cardinality and Range Description Inheritance
code 1
Integer
The error type that occurred direct
data 0..1
ErrorData
Base64-encoded binary data direct
message 1
String
A message string direct

Usages

used by used in type used
URLElicitationRequiredError error range Error
JSONRPCErrorResponse error range Error

Identifier and Mapping Information

Schema Source

Mappings

Mapping Type Mapped Value
self mcp:Error
native mcp:Error

LinkML Source

Direct

name: Error
description: A JSON-RPC error object.
from_schema: https://w3id.org/lmodel/mcp
slots:
- code
- data
- message
slot_usage:
  code:
    name: code
    required: true
  data:
    name: data
    range: ErrorData
    inlined: true
  message:
    name: message
    required: true

Induced

name: Error
description: A JSON-RPC error object.
from_schema: https://w3id.org/lmodel/mcp
slot_usage:
  code:
    name: code
    required: true
  data:
    name: data
    range: ErrorData
    inlined: true
  message:
    name: message
    required: true
attributes:
  code:
    name: code
    description: The error type that occurred.
    from_schema: https://w3id.org/lmodel/mcp
    rank: 1000
    alias: code
    owner: Error
    domain_of:
    - Error
    range: integer
    required: true
  data:
    name: data
    description: Base64-encoded binary data.
    from_schema: https://w3id.org/lmodel/mcp
    rank: 1000
    alias: data
    owner: Error
    domain_of:
    - Error
    - ImageContent
    - AudioContent
    - LoggingMessageNotificationParams
    range: ErrorData
    inlined: true
  message:
    name: message
    description: A message string.
    from_schema: https://w3id.org/lmodel/mcp
    rank: 1000
    alias: message
    owner: Error
    domain_of:
    - Error
    - URLElicitation
    - ProgressNotificationParams
    - ElicitRequestFormParams
    - ElicitRequestURLParams
    range: string
    required: true