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
7 8 9 10 11 12 13 14 |
# File 'lib/exception_notification/sidekiq.rb', line 7 def call(worker, msg, queue) begin yield rescue Exception => exception ExceptionNotifier.notify_exception(exception, :data => { :sidekiq => msg }) raise exception end end |