Class FlowBlockedException

All Implemented Interfaces:
Serializable

public class FlowBlockedException extends FlowException
This exception is used to indicate the current flow should abort at once.
Since:
5.1
Author:
O. Kerpershoek
See Also:
  • Constructor Details

    • FlowBlockedException

      public FlowBlockedException(String message, boolean rollbackTransaction, IErrorMessage[] errors)
      Constructs the exception with a message and transaction indicator.
      Parameters:
      message - Message explaining the cause of the flow abortion.
      rollbackTransaction - a boolean indicating if the current transaction should be rolled back.
      errors - Array containing the errors that were logged before the flow was blocked.
  • Method Details

    • getRollbackTransAction

      public boolean getRollbackTransAction()
      This method returns a boolean indicating if the current transaction should be rolled back.
      Returns:
      a boolean indicating if the current transaction should be rolled back.
    • getErrors

      public IErrorMessage[] getErrors()
      This method returns an array containing the error that were added to the context before the flow was blocked.
      Returns:
      array containing the error that were added to the context before the flow was blocked.