1
2module Rake
3
4  # Error indicating a recursion overflow error in task selection.
5  class RuleRecursionOverflowError < StandardError
6    def initialize(*args)
7      super
8      @targets = []
9    end
10
11    def add_target(target)
12      @targets << target
13    end
14
15    def message
16      super + ": [" + @targets.reverse.join(' => ') + "]"
17    end
18  end
19
20end
21