Module: DispatchRider::AirbrakeErrorHandler

Defined in:
lib/dispatch-rider/error_handlers.rb

Overview

This error handler integrates with airbrake.io, i sending the mesage and environment details.

Class Method Summary collapse

Class Method Details

.call(message, exception) ⇒ Object



14
15
16
# File 'lib/dispatch-rider/error_handlers.rb', line 14

def self.call(message, exception)
  Airbrake.notify(exception, controller: "DispatchRider", action: message.subject, parameters: message.attributes, cgi_data: ENV.to_hash)
end