Exception: ActionAgent::Api::McpController::McpError

Inherits:
StandardError
  • Object
show all
Defined in:
app/controllers/action_agent/api/mcp_controller.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, code = JSONRPC_SERVER_ERROR) ⇒ McpError

Returns a new instance of McpError.



68
69
70
71
# File 'app/controllers/action_agent/api/mcp_controller.rb', line 68

def initialize(message, code = JSONRPC_SERVER_ERROR)
  super(message)
  @code = code
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



66
67
68
# File 'app/controllers/action_agent/api/mcp_controller.rb', line 66

def code
  @code
end