Class: ExceptionNotification::Shoryuken::ExceptionNotificationMiddleware
- Inherits:
-
Object
- Object
- ExceptionNotification::Shoryuken::ExceptionNotificationMiddleware
- Defined in:
- lib/exception_notification/shoryuken/shoryuken.rb
Instance Method Summary collapse
Instance Method Details
#call(worker, queue, sqs_msg, body) ⇒ Object
7 8 9 10 11 12 13 14 |
# File 'lib/exception_notification/shoryuken/shoryuken.rb', line 7 def call(worker, queue, sqs_msg, body) begin yield rescue Exception => exception ExceptionNotifier.notify_exception(exception, :data => { :sqs_msg => sqs_msg.inspect }) raise exception end end |