Class ValidationError


  • public class ValidationError
    extends Object
    Provides a Form function validation error.
    Since:
    17.10.0
    • Field Detail

      • errorKey

        public final String errorKey
        The validation error message key.
      • path

        public final String path
        The data element path.
      • parameters

        public final Map<String,​Object> parameters
        The validation error message parameters.
    • Constructor Detail

      • ValidationError

        public ValidationError​(String errorKey)
        Create a validation error with the given errorKey.
        Parameters:
        errorKey - the validation errorKey (required)
      • ValidationError

        public ValidationError​(String errorKey,
                               String path)
        Create a validation error with the given errorKey and data path.
        Parameters:
        errorKey - the validation errorKey (required)
        path - the validation error data path (optional)
      • ValidationError

        public ValidationError​(String errorKey,
                               String path,
                               Map<String,​Object> parameters)
        Create a validation error with the given errorKey, data path and parameters.
        Parameters:
        errorKey - the validation errorKey (required)
        path - the validation error data path (optional)
        parameters - the validation error parameters (optional)
    • Method Detail

      • toString

        public String toString()
        Overrides:
        toString in class Object
        Returns:
        a string representation of the object.