Class FlowAuthorizationException

  • All Implemented Interfaces:
    Serializable

    public class FlowAuthorizationException
    extends FlowAccessException
    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:
    Serialized Form
    • Constructor Detail

      • FlowAuthorizationException

        public FlowAuthorizationException​(String flowName,
                                          String message,
                                          String[] requiredRoles)
        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 Detail

      • getRequiredRoles

        public String[] getRequiredRoles()
        Returns the roles needed to start a certain flow.
        Returns:
        String[] of roles