Exception: Rake::RuleRecursionOverflowError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/rake/rule_recursion_overflow_error.rb

Overview

Error indicating a recursion overflow error in task selection.

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ RuleRecursionOverflowError

Returns a new instance of RuleRecursionOverflowError.



6
7
8
9
# File 'lib/rake/rule_recursion_overflow_error.rb', line 6

def initialize(*args)
  super
  @targets = []
end

Instance Method Details

#add_target(target) ⇒ Object



11
12
13
# File 'lib/rake/rule_recursion_overflow_error.rb', line 11

def add_target(target)
  @targets << target
end

#messageObject



15
16
17
# File 'lib/rake/rule_recursion_overflow_error.rb', line 15

def message
  super + ": [" + @targets.reverse.join(' => ') + "]"
end