public interface

ValidationErrors

com.atlassian.bitbucket.ui.ValidationErrors
Known Indirect Subclasses

Class Overview

Used by ContextualFormFragment to report field validation errors.

Summary

Public Methods
void addFieldError(String fieldName, String errorMessage)
Add an error message to a specific field.
void addFormError(String errorMessage)
Add a general error message that will be rendered at the top of the form.

Public Methods

public void addFieldError (String fieldName, String errorMessage)

Add an error message to a specific field. You can add multiple error messages per field.

Parameters
fieldName the name attribute value of the field
errorMessage the error message. This should be an internationalised String resolved using SAL's I18nResolver.

public void addFormError (String errorMessage)

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.