Method: ExceptionNotification::Sidekiq#call

Defined in:
lib/exception_notification/sidekiq.rb

#call(_worker, msg, _queue) ⇒ Object



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

def call(_worker, msg, _queue)
  yield
rescue Exception => e
  ExceptionNotifier.notify_exception(e, data: {sidekiq: msg})
  raise e
end