Package io.nflow.engine.exception
Class StateSaveExceptionAnalyzer
java.lang.Object
io.nflow.engine.exception.StateSaveExceptionAnalyzer
State save exception analyzer analyzes exceptions thrown while trying to save workflow state and determines how the exception
is handled.
-
Constructor Summary
ConstructorsConstructorDescriptionCreate state save exception analyzer. -
Method Summary
Modifier and TypeMethodDescriptionprotected StateSaveExceptionHandlingOverride this to provide custom handling.analyzeSafely(Exception e, int saveRetryCount) Analyze the exception.
-
Constructor Details
-
StateSaveExceptionAnalyzer
Create state save exception analyzer.- Parameters:
env- The Spring environment.
-
-
Method Details
-
analyzeSafely
Analyze the exception.- Parameters:
e- The exception to be analyzed.saveRetryCount- How many times the saving has been attempted before this attempt.- Returns:
- How the exception should be handled.
-
analyze
Override this to provide custom handling.- Parameters:
e- The exception to be analyzed.saveRetryCount- How many times the saving has been attempted before this attempt.- Returns:
- How the exception should be handled.
-