Exception: Rubyagents::FinalAnswerException
- Inherits:
-
Exception
- Object
- Exception
- Rubyagents::FinalAnswerException
- Defined in:
- lib/rubyagents/errors.rb
Overview
Inherits Exception (not StandardError) so agent-generated rescue => e won't catch it
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
rubocop:disable Lint/InheritException.
Instance Method Summary collapse
-
#initialize(value) ⇒ FinalAnswerException
constructor
A new instance of FinalAnswerException.
Constructor Details
#initialize(value) ⇒ FinalAnswerException
Returns a new instance of FinalAnswerException.
16 17 18 19 |
# File 'lib/rubyagents/errors.rb', line 16 def initialize(value) @value = value super("Final answer reached") end |
Instance Attribute Details
#value ⇒ Object (readonly)
rubocop:disable Lint/InheritException
14 15 16 |
# File 'lib/rubyagents/errors.rb', line 14 def value @value end |