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