Class: Bumbleworks::ErrorDispatcher

Inherits:
Participant show all
Defined in:
lib/bumbleworks/participants/error_dispatcher.rb

Instance Method Summary collapse

Methods inherited from Participant

#on_cancel

Methods included from WorkitemEntityStorage

#entity_storage_workitem, #wrapped_workitem

Instance Method Details

#on_workitemObject



3
4
5
6
7
8
9
10
# File 'lib/bumbleworks/participants/error_dispatcher.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