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.



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

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

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



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

def code
  @code
end

#dataObject (readonly)

Returns the value of attribute data.



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

def data
  @data
end