Class: ExceptionNotification::Sidekiq
- Inherits:
-
Object
- Object
- ExceptionNotification::Sidekiq
- Defined in:
- lib/exception_notification/sidekiq.rb
Instance Method Summary collapse
Instance Method Details
#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 |