Exception: BehaviorTree::ShouldTickNotBooleanError
- Inherits:
-
StandardError
- Object
- StandardError
- BehaviorTree::ShouldTickNotBooleanError
- Defined in:
- lib/behavior_tree/errors.rb
Overview
Exception for when the returned value in should_tick? is not a boolean.
Instance Method Summary collapse
-
#initialize(returned_value) ⇒ ShouldTickNotBooleanError
constructor
A new instance of ShouldTickNotBooleanError.
Constructor Details
#initialize(returned_value) ⇒ ShouldTickNotBooleanError
Returns a new instance of ShouldTickNotBooleanError.
68 69 70 71 |
# File 'lib/behavior_tree/errors.rb', line 68 def initialize(returned_value) err = "Return of 'should_tick?' must be a boolean value. It returned #{returned_value} (#{returned_value.class})." super err end |