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