Exception: MCP::Client::RequestHandlerError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/mcp/client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, request, error_type: :internal_error, original_error: nil) ⇒ RequestHandlerError

Returns a new instance of RequestHandlerError.



108
109
110
111
112
113
# File 'lib/mcp/client.rb', line 108

def initialize(message, request, error_type: :internal_error, original_error: nil)
  super(message)
  @request = request
  @error_type = error_type
  @original_error = original_error
end

Instance Attribute Details

#error_typeObject (readonly)

Returns the value of attribute error_type.



106
107
108
# File 'lib/mcp/client.rb', line 106

def error_type
  @error_type
end

#original_errorObject (readonly)

Returns the value of attribute original_error.



106
107
108
# File 'lib/mcp/client.rb', line 106

def original_error
  @original_error
end

#requestObject (readonly)

Returns the value of attribute request.



106
107
108
# File 'lib/mcp/client.rb', line 106

def request
  @request
end