Class: LaMaquina::ErrorNotifier::HoneybadgerNotifier

Inherits:
Base
  • Object
show all
Defined in:
lib/la_maquina/error_notifier/honeybadger_notifier.rb

Class Method Summary collapse

Class Method Details

.notify(error, details = {}) ⇒ Object



4
5
6
7
8
9
# File 'lib/la_maquina/error_notifier/honeybadger_notifier.rb', line 4

def self.notify(error, details = {})
  Honeybadger.notify( :error_class => "LaMaquinaError: #{error.class.name}",
                      :error_message => error.message,
                      :parameters => details
                    )
end