Class PermissionStateTransitionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
energy.eddie.api.agnostic.process.model.PermissionStateTransitionException
- All Implemented Interfaces:
Serializable
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionPermissionStateTransitionException(String permissionId, PermissionProcessStatus desiredState, PermissionProcessStatus allowedCurrentStates, PermissionProcessStatus currentStatus) Convenience method forPermissionStateTransitionException(String, PermissionProcessStatus, List, PermissionProcessStatus)if there is only one state that allows the transition todesiredState.PermissionStateTransitionException(String permissionId, PermissionProcessStatus desiredState, List<PermissionProcessStatus> allowedCurrentStates, PermissionProcessStatus currentStatus) Indicate that a permission state transition was requested, but cannot be executed because the permission current state is not the required previous state for a successful transition.PermissionStateTransitionException(String permissionId, String desiredState, List<String> allowedCurrentStates, String currentStatus) -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
PermissionStateTransitionException
public PermissionStateTransitionException(String permissionId, PermissionProcessStatus desiredState, List<PermissionProcessStatus> allowedCurrentStates, PermissionProcessStatus currentStatus) Indicate that a permission state transition was requested, but cannot be executed because the permission current state is not the required previous state for a successful transition. The permission has to be in a state ofallowedCurrentStatesthat a transition todesiredStateis permitted.- Parameters:
permissionId- ID of the permission that should be transitioned.desiredState- State to which the permission should be transitioned.allowedCurrentStates- List of states which allow the permission to be transitioned todesiredState.currentStatus- Current state of the permission.
-
PermissionStateTransitionException
public PermissionStateTransitionException(String permissionId, PermissionProcessStatus desiredState, PermissionProcessStatus allowedCurrentStates, PermissionProcessStatus currentStatus) Convenience method forPermissionStateTransitionException(String, PermissionProcessStatus, List, PermissionProcessStatus)if there is only one state that allows the transition todesiredState. -
PermissionStateTransitionException
-