Exception: Manceps::ToolError
- Defined in:
- lib/manceps/errors.rb
Overview
Error raised when a tool invocation fails.
Instance Attribute Summary collapse
-
#result ⇒ Object
readonly
Returns the value of attribute result.
Instance Method Summary collapse
-
#initialize(message, result: nil) ⇒ ToolError
constructor
A new instance of ToolError.
Constructor Details
#initialize(message, result: nil) ⇒ ToolError
Returns a new instance of ToolError.
27 28 29 30 |
# File 'lib/manceps/errors.rb', line 27 def initialize(, result: nil) @result = result super() end |
Instance Attribute Details
#result ⇒ Object (readonly)
Returns the value of attribute result.
25 26 27 |
# File 'lib/manceps/errors.rb', line 25 def result @result end |