Class: RuntimeerrorNotifier::Sidekiq

Inherits:
Object
  • Object
show all
Defined in:
lib/runtimeerror_notifier/sidekiq.rb

Instance Method Summary collapse

Instance Method Details

#call(worker, msg, queue) ⇒ Object



6
7
8
9
10
11
12
13
# File 'lib/runtimeerror_notifier/sidekiq.rb', line 6

def call(worker, msg, queue)
  begin
    yield
  rescue Exception => e
    ::RuntimeerrorNotifier::Notifier.notification(msg, e)
    raise
  end
end