Class Errors

java.lang.Object
org.ametys.runtime.parameter.Errors

public class Errors extends Object
Errors structure to populate on validation.
See Also:
  • Constructor Details

  • Method Details

    • hasErrors

      public boolean hasErrors()
      Tests if there were any errors.
      Returns:
      true if there is at least one error, false if there is no error.
    • getErrors

      Retrieves the errors.
      Returns:
      the errors.
    • addError

      public void addError(I18nizableText errorLabel)
      Add an error.
      Parameters:
      errorLabel - the error label.
    • addErrors

      public void addErrors(List<I18nizableText> errorLabels)
      Add errors.
      Parameters:
      errorLabels - the error labels.