Exception: MCP::Client::RequestHandlerError
- Inherits:
-
StandardError
- Object
- StandardError
- MCP::Client::RequestHandlerError
- Defined in:
- lib/mcp/client.rb
Instance Attribute Summary collapse
-
#error_type ⇒ Object
readonly
Returns the value of attribute error_type.
-
#original_error ⇒ Object
readonly
Returns the value of attribute original_error.
-
#request ⇒ Object
readonly
Returns the value of attribute request.
Instance Method Summary collapse
-
#initialize(message, request, error_type: :internal_error, original_error: nil) ⇒ RequestHandlerError
constructor
A new instance of RequestHandlerError.
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(, request, error_type: :internal_error, original_error: nil) super() @request = request @error_type = error_type @original_error = original_error end |
Instance Attribute Details
#error_type ⇒ Object (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_error ⇒ Object (readonly)
Returns the value of attribute original_error.
106 107 108 |
# File 'lib/mcp/client.rb', line 106 def original_error @original_error end |
#request ⇒ Object (readonly)
Returns the value of attribute request.
106 107 108 |
# File 'lib/mcp/client.rb', line 106 def request @request end |