Examples of addError()


Examples of com.google.gerrit.common.data.ReviewerResult.addError()

    List<PatchSetApproval> current = db.patchSetApprovals().byChange(changeId).toList();
    for (PatchSetApproval psa : current) {
      Account.Id who = psa.getAccountId();
      if (ids.contains(who) && !ctl.canRemoveReviewer(psa) && rejected.add(who)) {
        result.addError(new ReviewerResult.Error(
            ReviewerResult.Error.Type.REMOVE_NOT_PERMITTED,
            formatUser(who)));
      }
    }
View Full Code Here

Examples of com.google.inject.Binder.addError()

        // Bind event type metadata and bind any errors into Guice
        for (Class<?> eventType : eventTypes) {
            EventTypeMetadata<?> eventTypeMetadata = getEventTypeMetadata(eventType);
            metadataBinder.addBinding().toInstance(eventTypeMetadata);
            for (String error : eventTypeMetadata.getErrors()) {
                sourcedBinder.addError(error);
            }
        }
    }

    private static StackTraceElement getCaller()
View Full Code Here

Examples of com.google.jstestdriver.TestRunResult.addError()

      if (!verbose) {
        out.print('E');
      } else {
        printInProgress(browser, "[ERROR] ", testResult, log);
      }
      runData.addError();
      runData.addProblem(new TestResultProblem(testResult));
      totalErrors.incrementAndGet();
    } else {
      out.print("<" + result + ">");
      if (verbose) {
View Full Code Here

Examples of com.ipeirotis.gal.core.ConfusionMatrix.addError()

      String assignedCategory = l.getCategoryName();
      String correctCategory = d.getEvaluationCategory();

      // Double currentCount = eval_cm.getErrorRate(correctCategory,
      // assignedCategory);
      eval_cm.addError(correctCategory, assignedCategory, 1.0);
    }
    eval_cm.normalize();
    w.setEvalConfusionMatrix(eval_cm);
  }
 
View Full Code Here

Examples of com.jeecms.cms.web.WebErrors.addError()

  private WebErrors validateSave(CmsUser bean, Integer[] siteIds,
      Byte[] steps, Boolean[] allChannels, HttpServletRequest request) {
    WebErrors errors = WebErrors.create(request);
    if (siteIds != null) {
      if (steps == null) {
        errors.addError("steps cannot be null");
        return errors;
      }
      if (allChannels == null) {
        errors.addError("allChannels cannot be null");
        return errors;
View Full Code Here

Examples of com.jgoodies.validation.util.PropertyValidationSupport.addError()

        PropertyValidationSupport support = new PropertyValidationSupport(
                constructionTypeModel, "Garasjetype");

        if (ValidationUtils.isBlank(ModelUtil
                .nullToString(constructionTypeModel.getName()))) {
            support.addError("navn", "m� settes");
        }

        if (ValidationUtils.isBlank(ModelUtil
                .nullToString(constructionTypeModel.getProductArea()))) {
            support.addError("produktomr�de", "m� settes");
View Full Code Here

Examples of com.jgoodies.validation.util.PropertyValidationSupport.addError()

        .getUserName()))) {
      support.addError("navn", "m� settes");
    }

    if (!isOrderNrAndProjectNrValid()) {
      support.addError("ordrenr", "ordrenr eller prosjektnr m� settes");
    }

    if (ValidationUtils.isBlank(ModelUtil.nullToString(deviationModel
        .getInitiatedBy()))) {
      support.addError("initiert av", "m� settes");
View Full Code Here

Examples of com.jgoodies.validation.util.PropertyValidationSupport.addError()

      support.addError("ordrenr", "ordrenr eller prosjektnr m� settes");
    }

    if (ValidationUtils.isBlank(ModelUtil.nullToString(deviationModel
        .getInitiatedBy()))) {
      support.addError("initiert av", "m� settes");
    }

    if (ValidationUtils.isBlank(ModelUtil.nullToString(deviationModel
        .getResponsible()))) {
      support.addError("behandlingsansvarlig", "m� settes");
View Full Code Here

Examples of com.jpoweredcart.admin.form.sale.EmailSubmissionResult.addError()

 
  @RequestMapping(value="/send", method=RequestMethod.POST)
  public @ResponseBody EmailSubmissionResult send(@Valid ContactForm contactForm, Model model){
   
    EmailSubmissionResult result = new EmailSubmissionResult();
    result.addError("subject", "subject is required");
    return result;
  }
 
}
View Full Code Here

Examples of com.linkedin.data.DataMap.addError()

        final DataMap map = new DataMap();
        parseDataMap(map);
        if (_errorBuilder != null)
        {
          map.addError(_errorBuilder.toString());
        }
        result = expectType.cast(map);
      }
      else if (expectType == DataList.class)
      {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.