Exception: BehaviorTree::RegisterDSLNodeAlreadyExistsError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/behavior_tree/errors.rb

Overview

Exception for when trying to register a DSL keyword that already exists.

Instance Method Summary collapse

Constructor Details

#initialize(node_type) ⇒ RegisterDSLNodeAlreadyExistsError

Returns a new instance of RegisterDSLNodeAlreadyExistsError.



61
62
63
# File 'lib/behavior_tree/errors.rb', line 61

def initialize(node_type)
  super "Cannot register node '#{node_type}', it already exists."
end