Exception: DatagroutConduit::McpError
- Defined in:
- lib/datagrout_conduit/errors.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(code:, message:, data: nil) ⇒ McpError
constructor
A new instance of McpError.
Constructor Details
#initialize(code:, message:, data: nil) ⇒ McpError
Returns a new instance of McpError.
31 32 33 34 35 |
# File 'lib/datagrout_conduit/errors.rb', line 31 def initialize(code:, message:, data: nil) @code = code @data = data super("MCP error #{code}: #{}") end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
29 30 31 |
# File 'lib/datagrout_conduit/errors.rb', line 29 def code @code end |
#data ⇒ Object (readonly)
Returns the value of attribute data.
29 30 31 |
# File 'lib/datagrout_conduit/errors.rb', line 29 def data @data end |