Class ValidationError
- java.lang.Object
-
- fr.paris.lutece.util.beanvalidation.ValidationError
-
- All Implemented Interfaces:
ErrorMessage
public class ValidationError extends Object implements ErrorMessage
ValidationError
-
-
Constructor Summary
Constructors Constructor Description ValidationError(javax.validation.ConstraintViolation cv, Locale locale, ValidationErrorConfig config)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetFieldName()Returns the field nameStringgetMessage()Returns the error's message
-
-
-
Constructor Detail
-
ValidationError
public ValidationError(javax.validation.ConstraintViolation cv, Locale locale, ValidationErrorConfig config)Constructor- Parameters:
cv- The constraint violationlocale- The localeconfig- The config
-
-
Method Detail
-
getMessage
public String getMessage()
Returns the error's message- Specified by:
getMessagein interfaceErrorMessage- Returns:
- The message
-
getFieldName
public String getFieldName()
Returns the field name- Specified by:
getFieldNamein interfaceErrorMessage- Returns:
- the field name
-
-