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.



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

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

Instance Method Details

#add_target(target) ⇒ Object



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

def add_target(target)
  @targets << target
end

#messageObject



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

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