Class: Mistri::MCP::Error
- Inherits:
-
Error
- Object
- Error
- Mistri::MCP::Error
- Defined in:
- lib/mistri/mcp.rb
Overview
A protocol-level failure: a JSON-RPC error, a missing response, an unsupported negotiation.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(message = nil, code: nil) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(message = nil, code: nil) ⇒ Error
Returns a new instance of Error.
25 26 27 28 |
# File 'lib/mistri/mcp.rb', line 25 def initialize( = nil, code: nil) @code = code super() end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
23 24 25 |
# File 'lib/mistri/mcp.rb', line 23 def code @code end |