# File lib/new_relic/agent/transaction.rb, line 744 def record_exceptions error_recorded = false @exceptions.each do |exception, options| options[:uri] ||= request_path if request_path options[:port] = request_port if request_port options[:metric] = best_name options[:attributes] = @attributes error_recorded = !!agent.error_collector.notice_error(exception, options) || error_recorded end payload[:error] = error_recorded if payload end