# Adjust accordingly for the type of exception being raised. class NoMethodError alias_method :_message, :message def message "#{_message}\t\n#{backtrace.join("\t\n")}" end end