Exception: BehaviorTree::InvalidTreeMainNodeError
- Inherits:
-
StandardError
- Object
- StandardError
- BehaviorTree::InvalidTreeMainNodeError
- Defined in:
- lib/behavior_tree/errors.rb
Overview
Exception raised when the main node of a tree is of invalid type.
Instance Method Summary collapse
-
#initialize(node_type) ⇒ InvalidTreeMainNodeError
constructor
A new instance of InvalidTreeMainNodeError.
Constructor Details
#initialize(node_type) ⇒ InvalidTreeMainNodeError
Returns a new instance of InvalidTreeMainNodeError.
17 18 19 |
# File 'lib/behavior_tree/errors.rb', line 17 def initialize(node_type) super "Cannot chain #{node_type} to the root node of a tree. Valid types are: #{Tree::CHILD_VALID_CLASSES}." end |