Class: Rabbithole::ErrorHandler

Inherits:
Object
  • Object
show all
Defined in:
lib/rabbithole/error_handler.rb

Constant Summary collapse

@@registered_handler =
Rabbithole::ErrorHandlers::RaiseHandler

Class Method Summary collapse

Class Method Details

.handle(error, queue, payload) ⇒ Object



6
7
8
# File 'lib/rabbithole/error_handler.rb', line 6

def handle(error, queue, payload)
  @@registered_handler.handle(error, queue, payload)
end

.register_handler(handler) ⇒ Object



10
11
12
# File 'lib/rabbithole/error_handler.rb', line 10

def register_handler(handler)
  @@registered_handler = handler
end