Package org.ametys.runtime.parameter
Class Errors
java.lang.Object
org.ametys.runtime.parameter.Errors
Errors structure to populate on validation.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addError
(I18nizableText errorLabel) Add an error.void
addErrors
(List<I18nizableText> errorLabels) Add errors.Retrieves the errors.boolean
Tests if there were any errors.
-
Constructor Details
-
Errors
public Errors()
-
-
Method Details
-
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
Add an error.- Parameters:
errorLabel
- the error label.
-
addErrors
Add errors.- Parameters:
errorLabels
- the error labels.
-