Exception: Rubyagents::FinalAnswerException

Inherits:
Exception
  • Object
show all
Defined in:
lib/rubyagents/errors.rb

Overview

Inherits Exception (not StandardError) so agent-generated rescue => e won't catch it

Instance Attribute Summary collapse

Instance Method Summary collapse

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