Class: Eventboss::ErrorHandlers::NonExistentQueueHandler

Inherits:
Object
  • Object
show all
Defined in:
lib/eventboss/error_handlers/non_existent_queue_handler.rb

Instance Method Summary collapse

Instance Method Details

#call(exception, context = {}) ⇒ Object



4
5
6
7
8
9
# File 'lib/eventboss/error_handlers/non_existent_queue_handler.rb', line 4

def call(exception, context = {})
  if exception.class == ::Aws::SQS::Errors::NonExistentQueue
    queue = context.fetch(:poller_id, "").sub('poller-', '')
    Eventboss.logger.error("Queue  doesn't exist: " + queue)
  end
end