Class: Bumbleworks::ErrorLogger
- Inherits:
-
ErrorHandler
- Object
- ErrorHandler
- Bumbleworks::ErrorLogger
- Defined in:
- lib/bumbleworks/error_logger.rb
Instance Attribute Summary
Attributes inherited from ErrorHandler
Instance Method Summary collapse
Methods inherited from ErrorHandler
Methods included from WorkitemEntityStorage
#entity_storage_workitem, #wrapped_workitem
Constructor Details
This class inherits a constructor from Bumbleworks::ErrorHandler
Instance Method Details
#on_error ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 |
# File 'lib/bumbleworks/error_logger.rb', line 3 def on_error return unless logger logger.error( :actor => @workitem.wf_name, :action => 'process error', :target_type => entity_fields[:type], :target_id => entity_fields[:identifier], :metadata => ) end |