Class 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.String getFieldName()
      Returns the field name
      java.lang.String getMessage()
      Returns the error's message
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ValidationError

        public ValidationError​(javax.validation.ConstraintViolation cv,
                               java.util.Locale locale,
                               ValidationErrorConfig config)
        Constructor
        Parameters:
        cv - The constraint violation
        locale - The locale
        config - The config
    • Method Detail

      • getMessage

        public java.lang.String getMessage()
        Returns the error's message
        Specified by:
        getMessage in interface ErrorMessage
        Returns:
        The message
      • getFieldName

        public java.lang.String getFieldName()
        Returns the field name
        Specified by:
        getFieldName in interface ErrorMessage
        Returns:
        the field name