class BehaviorTree::InvalidTreeMainNodeError

Exception raised when the main node of a tree is of invalid type.

Public Class Methods

new(node_type) click to toggle source
Calls superclass method
# 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