def save
      Bugsnag.notify(exception, true) do |report|
        report.severity = "error"
        report.severity_reason = {
          :type => Bugsnag::Report::UNHANDLED_EXCEPTION_MIDDLEWARE,
          :attributes => FRAMEWORK_ATTRIBUTES
        }

        context = "#{payload['class']}@#{queue}"
        report.meta_data.merge!({:context => context, :payload => payload})
        report.context = context
      end
    end
def save
      Bugsnag.notify(exception, true) do |report|
        report.severity = "error"
        report.severity_reason = {
          :type => Bugsnag::Report::UNHANDLED_EXCEPTION_MIDDLEWARE,
          :attributes => FRAMEWORK_ATTRIBUTES
        }

        context = "#{payload['class']}@#{queue}"
        report.meta_data.merge!({:context => context, :payload => payload})
        report.context = context
      end
    end
Notifies Bugsnag of a raised exception.