Exception: RubyLLM::MCP::Errors::TransportError
- Defined in:
- lib/ruby_llm/mcp/errors.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#error ⇒ Object
readonly
Returns the value of attribute error.
Attributes inherited from BaseError
Instance Method Summary collapse
-
#initialize(message:, code: nil, error: nil) ⇒ TransportError
constructor
A new instance of TransportError.
Constructor Details
#initialize(message:, code: nil, error: nil) ⇒ TransportError
Returns a new instance of TransportError.
65 66 67 68 69 |
# File 'lib/ruby_llm/mcp/errors.rb', line 65 def initialize(message:, code: nil, error: nil) @code = code @error = error super(message: ) end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
63 64 65 |
# File 'lib/ruby_llm/mcp/errors.rb', line 63 def code @code end |
#error ⇒ Object (readonly)
Returns the value of attribute error.
63 64 65 |
# File 'lib/ruby_llm/mcp/errors.rb', line 63 def error @error end |