Exception: MCP::Server::RequestHandlerError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/mcp/server.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.



15
16
17
18
19
20
# File 'lib/mcp/server.rb', line 15

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.



12
13
14
# File 'lib/mcp/server.rb', line 12

def error_type
  @error_type
end

#original_errorObject (readonly)

Returns the value of attribute original_error.



13
14
15
# File 'lib/mcp/server.rb', line 13

def original_error
  @original_error
end