Class BaseWhatIfExceptionHandler

    • Field Detail

      • LOGGER

        protected Logger LOGGER
    • Constructor Detail

      • BaseWhatIfExceptionHandler

        public BaseWhatIfExceptionHandler()
    • 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 interface IWhatIfExceptionHandler
        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 interface IWhatIfExceptionHandler
        Parameters:
        datastore - the datastore instance used to attempt submission execution
        branch - the branch the engine was merging at time of exception
        e - 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 interface IWhatIfExceptionHandler
        Parameters:
        datastore - the datastore instance used to attempt submission execution
        branch - the branch the engine was deleting at time of exception
        e - 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 interface IWhatIfExceptionHandler
        Parameters:
        datastore - the datastore instance used to attempt submission execution
        submission - the submission the engine was executing at time of exception
        e - the exception that terminated the submission execution