Package com.codingapi.flow.exception
Class FlowPermissionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.codingapi.springboot.framework.exception.LocaleMessageException
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FlowPermissionExceptionaccessDenied(String operation) Access deniedMethods inherited from class com.codingapi.springboot.framework.exception.LocaleMessageException
getErrCode, getErrMessage, ofMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
FlowPermissionException
Constructor- Parameters:
code- error codemessage- error message
-
-
Method Details
-
accessDenied
Access denied- Parameters:
operation- operation name- Returns:
- exception
-