class

ModelContextProtocol::Messages::Error

Inherits JSON::Serializable < Reference < Object

Error information for MCP responses

Constructors

from_json_object(object : JSON::Any) : Error
Source
new(code : Int32, message : String, data : JSON::Any | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

code
Source
data
Source
message
Source