Package com.codingapi.flow.exception
Class FlowStateException
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.FlowStateException
- All Implemented Interfaces:
Serializable
Flow state exception
Thrown when the flow state does not allow the current operation For example: workflow is finished and cannot be operated, record is processed and cannot be processed again, etc.
- Since:
- 1.0.0
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FlowStateExceptionCurrent node cannot be nullstatic FlowStateExceptionedgeConfigError(String reason) Edge configuration errorstatic FlowStateExceptionNode not support revokestatic FlowStateExceptionOperator does not matchstatic FlowStateExceptionRecord is already done, operation not allowedstatic FlowStateExceptionRecord is already todo, operation not allowedstatic FlowStateExceptionRecord not support revokestatic FlowStateExceptionRecord not support urgestatic FlowStateExceptionRepository not registeredstatic FlowStateExceptionworkflowAlreadyDisable(String workflowId) Workflow is already disableMethods 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
-
FlowStateException
Constructor- Parameters:
code- error codemessage- error message
-
-
Method Details
-
repositoryNotRegistered
Repository not registered- Returns:
- exception
-
currentNodeNotNull
Current node cannot be null- Returns:
- exception
-
edgeConfigError
Edge configuration error- Parameters:
reason- reason- Returns:
- exception
-
recordAlreadyDone
Record is already done, operation not allowed- Returns:
- exception
-
recordAlreadyTodo
Record is already todo, operation not allowed- Returns:
- exception
-
operatorNotMatch
Operator does not match- Returns:
- exception
-
workflowAlreadyDisable
Workflow is already disable- Parameters:
workflowId- workflowId- Returns:
- exception
-
recordNotSupportRevoke
Record not support revoke- Returns:
- exception
-
nodeNotSupportRevoke
Node not support revoke- Returns:
- exception
-
recordNotSupportUrge
Record not support urge- Returns:
- exception
-