Class: ConeyIsland::Notifiers::RollbarNotifier

Inherits:
BaseNotifier
  • Object
show all
Defined in:
lib/coney_island/notifiers/rollbar_notifier.rb

Class Method Summary collapse

Class Method Details

.notify(message, extra_params = {}) ⇒ Object



4
5
6
7
8
9
10
# File 'lib/coney_island/notifiers/rollbar_notifier.rb', line 4

def self.notify(message, extra_params = {})
  dont_raise = RuntimeError.new(message)
  dont_raise.set_backtrace(caller)
  Rollbar.error(dont_raise, app_data: extra_params)
rescue NameError => e
  fail ConfigurationError, fail_message(:bugsnag, "Bugsnag")
end