Exception: Esp::McpServer::ProtocolError

Inherits:
StandardError
  • Object
show all
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

Instance Method Summary collapse

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, message)
  super(message)
  @code = code
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



330
331
332
# File 'lib/esp/mcp_server.rb', line 330

def code
  @code
end