Class ValidationError
java.lang.Object
fr.paris.lutece.util.beanvalidation.ValidationError
- All Implemented Interfaces:
ParamError,ErrorMessage
ValidationError
-
Constructor Summary
ConstructorsConstructorDescriptionValidationError(jakarta.validation.ConstraintViolation cv, Locale locale, ValidationErrorConfig config) Constructor -
Method Summary
Modifier and TypeMethodDescriptionReturns the field nameReturns a human-readable error message for this error.The parameter name of the value that caused the error.
-
Constructor Details
-
ValidationError
public ValidationError(jakarta.validation.ConstraintViolation cv, Locale locale, ValidationErrorConfig config) Constructor- Parameters:
cv- The constraint violationlocale- The localeconfig- The config
-
-
Method Details
-
getMessage
Returns a human-readable error message for this error.- Specified by:
getMessagein interfaceParamError- Returns:
- The human-readable error message
-
getFieldName
Returns the field name- Specified by:
getFieldNamein interfaceErrorMessage- Returns:
- the field name
-
getParamName
Description copied from interface:ParamErrorThe parameter name of the value that caused the error. This is usually the name specified in the binding annotation.- Specified by:
getParamNamein interfaceParamError- Returns:
- The name of the parameter which caused the error
-