Class: Exceptiontrap::SidekiqException
- Inherits:
-
Object
- Object
- Exceptiontrap::SidekiqException
- Defined in:
- lib/exceptiontrap/sidekiq.rb
Instance Method Summary collapse
Instance Method Details
#call(worker, msg, queue) ⇒ Object
3 4 5 6 7 8 9 10 |
# File 'lib/exceptiontrap/sidekiq.rb', line 3 def call(worker, msg, queue) begin yield rescue => exception Exceptiontrap::notify(exception, { custom_params: msg, custom_controller: msg['class'] }) raise exception end end |