Exception: Manceps::ProtocolError
- Defined in:
- lib/manceps/errors.rb
Overview
JSON-RPC error from the MCP server.
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#data ⇒ Object
readonly
Returns the value of attribute data.
Instance Method Summary collapse
-
#initialize(message, code: nil, data: nil) ⇒ ProtocolError
constructor
A new instance of ProtocolError.
Constructor Details
#initialize(message, code: nil, data: nil) ⇒ ProtocolError
Returns a new instance of ProtocolError.
13 14 15 16 17 |
# File 'lib/manceps/errors.rb', line 13 def initialize(, code: nil, data: nil) @code = code @data = data super() end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
11 12 13 |
# File 'lib/manceps/errors.rb', line 11 def code @code end |
#data ⇒ Object (readonly)
Returns the value of attribute data.
11 12 13 |
# File 'lib/manceps/errors.rb', line 11 def data @data end |