Class FlowAuthorizationException
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.flow.exception.FlowAccessException
com.aquima.interactions.portal.exception.FlowAuthorizationException
- All Implemented Interfaces:
Serializable
This exception is used to indicate the flow could not be accessed due to a required role not being present.
- Since:
- 5.0
- Author:
- O. Kerpershoek
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionFlowAuthorizationException
(String flowName, String message, String[] requiredRoles) Constructs the exception with the required parameters. -
Method Summary
Methods inherited from class com.aquima.interactions.flow.exception.FlowAccessException
getFlowName
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
FlowAuthorizationException
Constructs the exception with the required parameters.- Parameters:
flowName
- the name of the flow that could not be accessed.message
- Message providing further information about the cause of the error.requiredRoles
- Array of roles that is required by the flow.
-
-
Method Details
-
getRequiredRoles
Returns the roles needed to start a certain flow.- Returns:
- String[] of roles
-