Exception: BehaviorTree::ShouldTickNotBooleanError

Inherits:
StandardError
  • Object
show all
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

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