Exception: BehaviorTree::InvalidTreeMainNodeError

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

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