class ExceptionNotification::Shoryuken::ExceptionNotificationMiddleware

Public Instance Methods

call(worker, queue, sqs_msg, body) { || ... } click to toggle source
# 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