Exception: MCP::Client::ServerError
- Inherits:
-
StandardError
- Object
- StandardError
- MCP::Client::ServerError
- Defined in:
- lib/mcp/client.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#data ⇒ Object
readonly
Returns the value of attribute data.
Instance Method Summary collapse
-
#initialize(message, code:, data: nil) ⇒ ServerError
constructor
A new instance of ServerError.
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(, code:, data: nil) super() @code = code @data = data end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
10 11 12 |
# File 'lib/mcp/client.rb', line 10 def code @code end |
#data ⇒ Object (readonly)
Returns the value of attribute data.
10 11 12 |
# File 'lib/mcp/client.rb', line 10 def data @data end |