code: public void setErrors(final List<Diagnostic> errors) {
  		if (errors != null) {
  			ValidationErrorsModel model = getOrCreateComponentModel();
  
  			for (Diagnostic error : errors) {
  				if (error.getSeverity() == Diagnostic.ERROR) {
  					model.errors.add(error);
  				}
  			}
  		}
  	}
docs: Sets the errors for a given user.
  
  @param errors the errors to set.