class Rake::Task

def add_chain_to(exception, new_chain) # :nodoc:

:nodoc:
def add_chain_to(exception, new_chain) # :nodoc:
  exception.extend(InvocationExceptionMixin) unless
    exception.respond_to?(:chain)
  exception.chain = new_chain if exception.chain.nil?
end