Class BaseWhatIfExceptionHandler
- java.lang.Object
-
- com.activeviam.tools.whatif.example.BaseWhatIfExceptionHandler
-
- All Implemented Interfaces:
IWhatIfExceptionHandler
public class BaseWhatIfExceptionHandler extends Object implements IWhatIfExceptionHandler
-
-
Constructor Summary
Constructors Constructor Description BaseWhatIfExceptionHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onDeleteException(com.qfs.store.IDatastore datastore, String branch, Exception e)
Called on any exception thrown from within a branch delete.void
onException(Exception e)
Called on a generic exception thrown.void
onExecuteException(com.qfs.store.IDatastore datastore, IWhatIfSubmission submission, Exception e)
Called on any exception thrown from within a @IWhatIfSubmission
execution.void
onMergeException(com.qfs.store.IDatastore datastore, String branch, Exception e)
Called on any exception thrown from within a branch merge.
-
-
-
Field Detail
-
LOGGER
protected Logger LOGGER
-
-
Method Detail
-
onException
public void onException(Exception e)
Description copied from interface:IWhatIfExceptionHandler
Called on a generic exception thrown. is provided to manage any required rollback or followup transactions.- Specified by:
onException
in interfaceIWhatIfExceptionHandler
- Parameters:
e
- the exception that terminated the submission execution
-
onMergeException
public void onMergeException(com.qfs.store.IDatastore datastore, String branch, Exception e)
Description copied from interface:IWhatIfExceptionHandler
Called on any exception thrown from within a branch merge. @IDatastore
is provided to manage any required rollback or followup transactions. @IWhatIfSubmission
- Specified by:
onMergeException
in interfaceIWhatIfExceptionHandler
- Parameters:
datastore
- the datastore instance used to attempt submission executionbranch
- the branch the engine was merging at time of exceptione
- the exception that terminated the submission execution
-
onDeleteException
public void onDeleteException(com.qfs.store.IDatastore datastore, String branch, Exception e)
Description copied from interface:IWhatIfExceptionHandler
Called on any exception thrown from within a branch delete. @IDatastore
is provided to manage any required rollback or followup transactions. @IWhatIfSubmission
- Specified by:
onDeleteException
in interfaceIWhatIfExceptionHandler
- Parameters:
datastore
- the datastore instance used to attempt submission executionbranch
- the branch the engine was deleting at time of exceptione
- the exception that terminated the submission execution
-
onExecuteException
public void onExecuteException(com.qfs.store.IDatastore datastore, IWhatIfSubmission submission, Exception e)
Description copied from interface:IWhatIfExceptionHandler
Called on any exception thrown from within a @IWhatIfSubmission
execution. @IDatastore
is provided to manage any required rollback or followup transactions. @IWhatIfSubmission
- Specified by:
onExecuteException
in interfaceIWhatIfExceptionHandler
- Parameters:
datastore
- the datastore instance used to attempt submission executionsubmission
- the submission the engine was executing at time of exceptione
- the exception that terminated the submission execution
-
-