Exception: MCP::Server::RequestHandlerError
- Inherits:
-
StandardError
- Object
- StandardError
- MCP::Server::RequestHandlerError
- Defined in:
- lib/mcp/server.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.
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.
15 16 17 18 19 20 |
# File 'lib/mcp/server.rb', line 15 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.
12 13 14 |
# File 'lib/mcp/server.rb', line 12 def error_type @error_type end |
#original_error ⇒ Object (readonly)
Returns the value of attribute original_error.
13 14 15 |
# File 'lib/mcp/server.rb', line 13 def original_error @original_error end |