Package rife.workflow
Interface ErrorListener
public interface ErrorListener
This interface allows classes to register themselves to receive
notifications when work fails with an exception in a
Workflow.
Error listeners have to be registered through
Workflow.addErrorListener(rife.workflow.ErrorListener). When no error listeners have been
registered, work failures will be logged to the rife.workflow
logger instead.
Failed work counts as finished work, which means that
Workflow.waitForNoWork() and Workflow.waitForPausedWork()
return normally when work fails, and these listeners are the way for you
to detect that failures happened.
- Since:
- 1.10
- See Also:
- API Note:
- The workflow engine is in a BETA STAGE and might still change.
-
Method Summary
Modifier and TypeMethodDescriptionvoiderrorOccurred(WorkErrorException error) Called when work failed with an exception.
-
Method Details
-
errorOccurred
Called when work failed with an exception.This method will be called on the thread that was executing the work.
- Parameters:
error- describes the work that failed, with the original exception available as its cause- Since:
- 1.10
- See Also:
-