Package com.codingapi.flow.exception
Class FlowPermissionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.codingapi.flow.exception.FlowException
com.codingapi.flow.exception.FlowPermissionException
- All Implemented Interfaces:
Serializable
Flow permission exception
Thrown when an operator does not have permission to perform the current operation For example: field is read-only and cannot be modified, no permission to operate the flow, etc.
- Since:
- 1.0.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionFlowPermissionException(String code, String message) ConstructorFlowPermissionException(String code, String message, Throwable cause) Constructor -
Method Summary
Modifier and TypeMethodDescriptionstatic FlowPermissionExceptionaccessDenied(String operation) Access deniedstatic FlowPermissionExceptionfieldNotFound(String fieldName) Field not foundstatic FlowPermissionExceptionfieldReadOnly(String fieldName) Field is read-onlystatic FlowPermissionExceptionnoPermission(long operatorId) No permission to operate the flowMethods inherited from class com.codingapi.flow.exception.FlowException
getErrorCode, toStringMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
FlowPermissionException
Constructor- Parameters:
code- error codemessage- error message
-
FlowPermissionException
Constructor- Parameters:
code- error codemessage- error messagecause- cause
-
-
Method Details
-
fieldReadOnly
Field is read-only- Parameters:
fieldName- field name- Returns:
- exception
-
fieldNotFound
Field not found- Parameters:
fieldName- field name- Returns:
- exception
-
accessDenied
Access denied- Parameters:
operation- operation name- Returns:
- exception
-
noPermission
No permission to operate the flow- Parameters:
operatorId- operator ID- Returns:
- exception
-