Exception: MCP::Server::RequestHandlerError
- Inherits:
-
StandardError
- Object
- StandardError
- MCP::Server::RequestHandlerError
- Defined in:
- lib/mcp/server.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#error_code ⇒ Object
readonly
Returns the value of attribute error_code.
-
#error_data ⇒ Object
readonly
Returns the value of attribute error_data.
-
#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, error_code: nil, error_data: nil) ⇒ RequestHandlerError
constructor
A new instance of RequestHandlerError.
Constructor Details
#initialize(message, request, error_type: :internal_error, original_error: nil, error_code: nil, error_data: nil) ⇒ RequestHandlerError
Returns a new instance of RequestHandlerError.
36 37 38 39 40 41 42 43 |
# File 'lib/mcp/server.rb', line 36 def initialize(, request, error_type: :internal_error, original_error: nil, error_code: nil, error_data: nil) super() @request = request @error_type = error_type @original_error = original_error @error_code = error_code @error_data = error_data end |
Instance Attribute Details
#error_code ⇒ Object (readonly)
Returns the value of attribute error_code.
34 35 36 |
# File 'lib/mcp/server.rb', line 34 def error_code @error_code end |
#error_data ⇒ Object (readonly)
Returns the value of attribute error_data.
34 35 36 |
# File 'lib/mcp/server.rb', line 34 def error_data @error_data end |
#error_type ⇒ Object (readonly)
Returns the value of attribute error_type.
34 35 36 |
# File 'lib/mcp/server.rb', line 34 def error_type @error_type end |
#original_error ⇒ Object (readonly)
Returns the value of attribute original_error.
34 35 36 |
# File 'lib/mcp/server.rb', line 34 def original_error @original_error end |