Package com.codingapi.flow.exception
Class FlowValidationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
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
ConstructorsConstructorDescriptionFlowValidationException(String code, String message) ConstructorFlowValidationException(String code, String message, Throwable cause) Constructor -
Method Summary
Modifier and TypeMethodDescriptionstatic FlowValidationExceptionmustBePositive(String fieldName) Max size must be positivestatic FlowValidationExceptionField value cannot be emptystatic FlowValidationExceptionRequired field is emptyMethods 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
-
FlowValidationException
Constructor- Parameters:
code- error codemessage- error message
-
FlowValidationException
Constructor- Parameters:
code- error codemessage- error messagecause- cause
-
-
Method Details
-
required
Required field is empty- Parameters:
fieldName- field name- Returns:
- exception
-
notEmpty
Field value cannot be empty- Parameters:
fieldName- field name- Returns:
- exception
-
mustBePositive
Max size must be positive- Parameters:
fieldName- field name- Returns:
- exception
-