Sha256: ea7113a823c05735fea5185a5d1f8561582d10042a0d264138a41b3e101cd51c
Contents?: true
Size: 552 Bytes
Versions: 2
Compression:
Stored size: 552 Bytes
Contents
module DispatchRider # This is the default error handler for dispatch rider. # It simply re-raises the exception. module DefaultErrorHandler def self.call(message, exception) raise exception end end # This error handler integrates with airbrake.io, i # sending the mesage and environment details. module AirbrakeErrorHandler def self.call(message, exception) Airbrake.notify(exception, controller: "DispatchRider", action: message.subject, parameters: message.attributes, cgi_data: ENV.to_hash) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
dispatch-rider-2.1.0 | lib/dispatch-rider/error_handlers.rb |
dispatch-rider-2.0.0 | lib/dispatch-rider/error_handlers.rb |