Exception: OmniAI::MCP::JRPC::Error
- Inherits:
-
StandardError
- Object
- StandardError
- OmniAI::MCP::JRPC::Error
- Defined in:
- lib/omniai/mcp/jrpc/error.rb
Overview
Defined Under Namespace
Modules: Code
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(code:, message:) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(code:, message:) ⇒ Error
Returns a new instance of Error.
27 28 29 30 31 32 |
# File 'lib/omniai/mcp/jrpc/error.rb', line 27 def initialize(code:, message:) super("code=#{code} message=#{}") @code = code @message = end |
Instance Attribute Details
#code ⇒ Integer
19 20 21 |
# File 'lib/omniai/mcp/jrpc/error.rb', line 19 def code @code end |
#message ⇒ String
23 24 25 |
# File 'lib/omniai/mcp/jrpc/error.rb', line 23 def @message end |