class

MCP::Protocol::JSONRPCError

Inherits MCP::Protocol::JSONRPCMessageWithId < MCP::Protocol::JSONRPCMessage < JSON::Serializable < Reference < Object

Constructors

new(id : RequestId | Nil, code : ErrorCode, message : String, data : Hash(String, JSON::Any) | Nil = nil)
Source
new(id : RequestId | Nil, code : ErrorCode, message : String, **kw)
Source

Class methods

with_auto_id(code : ErrorCode, message : String, data : Hash(String, JSON::Any) | Nil = nil)
Source

Instance methods

error
Source

Nested types