Class: Pwwka::ErrorHandlers::Crash

Inherits:
BaseErrorHandler show all
Defined in:
lib/pwwka/error_handlers/crash.rb

Constant Summary

Constants included from Logging

Logging::LEVELS

Instance Method Summary collapse

Methods included from Logging

#logf, #logger

Instance Method Details

#handle_error(receiver, queue_name, payload, delivery_info, e) ⇒ Object

Raises:

  • (Interrupt)

5
6
7
8
# File 'lib/pwwka/error_handlers/crash.rb', line 5

def handle_error(receiver,queue_name,payload,delivery_info,e)
  raise Interrupt,"Exiting due to exception #{e.inspect}"
  abort_chain
end