has_chain?(exception)
Does the exception have a task invocation chain?
# File lib/rake/application.rb, line 173 def has_chain?(exception) exception.respond_to?(:chain) && exception.chain end