Exception: BehaviorTree::IncorrectTraversalStrategyError
- Inherits:
-
StandardError
- Object
- StandardError
- BehaviorTree::IncorrectTraversalStrategyError
- Defined in:
- lib/behavior_tree/errors.rb
Overview
Exception for when the children traversal strategy is incorrect.
Instance Method Summary collapse
-
#initialize(value) ⇒ IncorrectTraversalStrategyError
constructor
A new instance of IncorrectTraversalStrategyError.
Constructor Details
#initialize(value) ⇒ IncorrectTraversalStrategyError
Returns a new instance of IncorrectTraversalStrategyError.
6 7 8 9 10 11 12 |
# File 'lib/behavior_tree/errors.rb', line 6 def initialize(value) err = [ "Strategy for iterating children nodes must return an object which has an 'each' method.", "Attempted to use strategy: #{value}." ] super err.join ' ' end |