Sha256: afc91ac561b56ad4a353e1a419801507f034303764e5bdeba37882daaf74dd17

Contents?: true

Size: 553 Bytes

Versions: 56

Compression:

Stored size: 553 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

56 entries across 56 versions & 1 rubygems

Version Path
dispatch-rider-1.9.0 lib/dispatch-rider/error_handlers.rb
dispatch-rider-1.8.6 lib/dispatch-rider/error_handlers.rb
dispatch-rider-1.8.5 lib/dispatch-rider/error_handlers.rb
dispatch-rider-1.8.4 lib/dispatch-rider/error_handlers.rb
dispatch-rider-1.8.3 lib/dispatch-rider/error_handlers.rb
dispatch-rider-1.8.2 lib/dispatch-rider/error_handlers.rb
dispatch-rider-1.8.1 lib/dispatch-rider/error_handlers.rb
dispatch-rider-1.8.0 lib/dispatch-rider/error_handlers.rb
dispatch-rider-1.7.2 lib/dispatch-rider/error_handlers.rb
dispatch-rider-1.7.1 lib/dispatch-rider/error_handlers.rb
dispatch-rider-1.7.0 lib/dispatch-rider/error_handlers.rb
dispatch-rider-1.6.2 lib/dispatch-rider/error_handlers.rb
dispatch-rider-1.6.1 lib/dispatch-rider/error_handlers.rb
dispatch-rider-1.6.0 lib/dispatch-rider/error_handlers.rb
dispatch-rider-1.5.3 lib/dispatch-rider/error_handlers.rb
dispatch-rider-1.5.2 lib/dispatch-rider/error_handlers.rb
dispatch-rider-1.5.1 lib/dispatch-rider/error_handlers.rb
dispatch-rider-1.5.0 lib/dispatch-rider/error_handlers.rb
dispatch-rider-1.4.2 lib/dispatch-rider/error_handlers.rb
dispatch-rider-1.4.0 lib/dispatch-rider/error_handlers.rb