Exception: RubyLLM::MCP::Errors::TransportError

Inherits:
BaseError
  • Object
show all
Defined in:
lib/ruby_llm/mcp/errors.rb

Instance Attribute Summary collapse

Attributes inherited from BaseError

#message

Instance Method Summary collapse

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: message)
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



63
64
65
# File 'lib/ruby_llm/mcp/errors.rb', line 63

def code
  @code
end

#errorObject (readonly)

Returns the value of attribute error.



63
64
65
# File 'lib/ruby_llm/mcp/errors.rb', line 63

def error
  @error
end