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.



13
14
15
16
17
# File 'lib/mcp/client.rb', line 13

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

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



11
12
13
# File 'lib/mcp/client.rb', line 11

def code
  @code
end

#dataObject (readonly)

Returns the value of attribute data.



11
12
13
# File 'lib/mcp/client.rb', line 11

def data
  @data
end