Class ValidationError

java.lang.Object
fr.paris.lutece.util.beanvalidation.ValidationError
All Implemented Interfaces:
ParamError, ErrorMessage

public class ValidationError extends Object implements ErrorMessage
ValidationError
  • Constructor Details

    • ValidationError

      public ValidationError(jakarta.validation.ConstraintViolation cv, Locale locale, ValidationErrorConfig config)
      Constructor
      Parameters:
      cv - The constraint violation
      locale - The locale
      config - The config
  • Method Details

    • getMessage

      public String getMessage()
      Returns a human-readable error message for this error.
      Specified by:
      getMessage in interface ParamError
      Returns:
      The human-readable error message
    • getFieldName

      public String getFieldName()
      Returns the field name
      Specified by:
      getFieldName in interface ErrorMessage
      Returns:
      the field name
    • getParamName

      public String getParamName()
      Description copied from interface: ParamError
      The parameter name of the value that caused the error. This is usually the name specified in the binding annotation.
      Specified by:
      getParamName in interface ParamError
      Returns:
      The name of the parameter which caused the error