Exception: Esp::McpServer::ProtocolError
- Inherits:
-
StandardError
- Object
- StandardError
- Esp::McpServer::ProtocolError
- Defined in:
- lib/esp/mcp_server.rb
Overview
Raised internally to carry a JSON-RPC error code out to the responder.
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(code, message) ⇒ ProtocolError
constructor
A new instance of ProtocolError.
Constructor Details
#initialize(code, message) ⇒ ProtocolError
Returns a new instance of ProtocolError.
332 333 334 335 |
# File 'lib/esp/mcp_server.rb', line 332 def initialize(code, ) super() @code = code end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
330 331 332 |
# File 'lib/esp/mcp_server.rb', line 330 def code @code end |