Class FlowBlockedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.aquima.interactions.foundation.exception.AppException
com.aquima.interactions.flow.FlowException
com.aquima.interactions.portal.exception.FlowBlockedException
- All Implemented Interfaces:
Serializable
This exception is used to indicate the current flow should abort at once.
- Since:
- 5.1
- Author:
- O. Kerpershoek
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionFlowBlockedException
(String message, boolean rollbackTransaction, IErrorMessage[] errors) Constructs the exception with a message and transaction indicator. -
Method Summary
Modifier and TypeMethodDescriptionThis method returns an array containing the error that were added to the context before the flow was blocked.boolean
This method returns a boolean indicating if the current transaction should be rolled back.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
FlowBlockedException
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
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.
-