Class ValidationError

    • Constructor Detail

      • ValidationError

        public ValidationError​(String code)
        Constructs a new ValidationError with the supplied error code.
        Parameters:
        code - the error code
      • ValidationError

        public ValidationError​(String field,
                               String code)
        Constructs a new ValidationError with the supplied field name and error code.
        Parameters:
        field - the field name
        code - the error code
    • Method Detail

      • getField

        public String getField()
        Returns the field name or null.
        Returns:
        the field name or null
      • getCode

        public String getCode()
        Returns the error code.
        Returns:
        the error code