Class: Bumbleworks::ErrorHandlerParticipant

Inherits:
Ruote::Participant
  • Object
show all
Defined in:
lib/bumbleworks/error_handler_participant.rb

Instance Method Summary collapse

Instance Method Details

#on_workitemObject



3
4
5
6
7
8
9
10
# File 'lib/bumbleworks/error_handler_participant.rb', line 3

def on_workitem
  return if (error_handlers = Bumbleworks.error_handlers).empty?

  error_handlers.each do |error_handler|
    error_handler.new(workitem).on_error
  end
  reply
end