Exception: MCP::Client::ServerError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, code:, data: nil) ⇒ ServerError

Returns a new instance of ServerError.



24
25
26
27
28
# File 'lib/mcp/client.rb', line 24

def initialize(message, code:, data: nil)
  super(message)
  @code = code
  @data = data
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



22
23
24
# File 'lib/mcp/client.rb', line 22

def code
  @code
end

#dataObject (readonly)

Returns the value of attribute data.



22
23
24
# File 'lib/mcp/client.rb', line 22

def data
  @data
end