Class RequestValidationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.codingchili.core.context.CoreRuntimeException
com.codingchili.core.protocol.exception.RequestValidationException
- All Implemented Interfaces:
CoreExceptionFormat
,Serializable
Throw when a request has error validation.
- See Also:
- Serialized Form
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic RequestValidationException
lengthError(ValidatorSettings settings, int length)
Thrown when input validation fails due to length constraint.Methods inherited from class com.codingchili.core.context.CoreRuntimeException
status
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
RequestValidationException
- Parameters:
message
- the error message that caused validation error.
-
-
Method Details
-
lengthError
Thrown when input validation fails due to length constraint.- Parameters:
settings
- the settings object for the validation that failed.length
- the actual length of the input.- Returns:
- a new exception object.
-