Module: Sidekiq::ExceptionHandler

Defined in:
lib/sidekiq/configure_notifications/exception_handler.rb

Instance Method Summary collapse

Instance Method Details

#handle_exception(ex, msg) ⇒ Object



7
8
9
10
11
12
# File 'lib/sidekiq/configure_notifications/exception_handler.rb', line 7

def handle_exception(ex, msg)
  if msg['retry_count'].to_i >= msg['log_exceptions_after'].to_i &&
      (msg['skip_log_exceptions'].nil? || msg['skip_log_exceptions'].size == 0 || msg['skip_log_exceptions'].include?(ex.class))
    handle_exception_original(ex, msg)
  end
end

#handle_exception_originalObject



5
# File 'lib/sidekiq/configure_notifications/exception_handler.rb', line 5

alias_method :handle_exception_original, :handle_exception