Package com.codingapi.flow.exception
Class FlowValidationException
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.FlowValidationException
- All Implemented Interfaces:
Serializable
Flow parameter validation exception
Thrown when input parameters to the flow engine do not meet requirements For example: required parameter is empty, parameter format is incorrect, etc.
- Since:
- 1.0.0
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FlowValidationExceptionfieldNotFound(String fieldName) Field not foundstatic FlowValidationExceptionfieldReadOnly(String fieldName) Field is read-onlystatic FlowValidationExceptionmustBePositive(String fieldName) Max size must be positivestatic FlowValidationExceptionnodeRequired(String fieldName) node field is emptystatic FlowValidationExceptionoperatorOutOfRange(String nodeId) Selected operators exceed the allowed rangestatic FlowValidationExceptionRequired field is emptystatic FlowValidationExceptionworkflowRequired(String fieldName) workflow field is emptyMethods 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
-
FlowValidationException
Constructor- Parameters:
code- error codemessage- error message
-
-
Method Details
-
nodeRequired
node field is empty- Parameters:
fieldName- node field name- Returns:
- exception
-
fieldReadOnly
Field is read-only- Parameters:
fieldName- field name- Returns:
- exception
-
fieldNotFound
Field not found- Parameters:
fieldName- field name- Returns:
- exception
-
workflowRequired
workflow field is empty- Parameters:
fieldName- node field name- Returns:
- exception
-
required
Required field is empty- Parameters:
fieldName- field name- Returns:
- exception
-
mustBePositive
Max size must be positive- Parameters:
fieldName- field name- Returns:
- exception
-
operatorOutOfRange
Selected operators exceed the allowed range- Parameters:
nodeId- node id- Returns:
- exception
-