Package com.atlassian.bitbucket.ui
Interface ValidationErrors
- All Known Subinterfaces:
SettingsValidationErrors
public interface ValidationErrors
Used by
ContextualFormFragment to report field validation errors.-
Method Summary
Modifier and TypeMethodDescriptionvoidaddFieldError(String fieldName, String errorMessage) Add an error message to a specific field.voidaddFormError(String errorMessage) Add a general error message that will be rendered at the top of the form.
-
Method Details
-
addFieldError
Add an error message to a specific field. You can add multiple error messages per field.- Parameters:
fieldName- the name attribute value of the fielderrorMessage- the error message. This should be an internationalised String resolved using SAL's I18nResolver.
-
addFormError
Add a general error message that will be rendered at the top of the form.- Parameters:
errorMessage- the error message. This should be an internationalised String resolved using SAL's I18nResolver.
-