Examples of addError()


Examples of burhan.bean.NotificationBean.addError()

        // do nothing
      }
     
      // set notifications
      if(date == null){
        notificationBean.addError("Please enter a valid date");
      }
      if(amount == 0){
        notificationBean.addError("Please enter an valid amount");
      }
     
View Full Code Here

Examples of ch.qos.logback.core.joran.spi.ExecutionContext.addError()

        spf.setValidating(false);
        spf.setNamespaceAware(true);
        saxParser = spf.newSAXParser();
    } catch (Exception pce) {
      String errMsg = "Parser configuration error occured";
      ec.addError(errMsg, pce);
      return;
    }
   
    try {
      // attachListAppender(context);
View Full Code Here

Examples of ch.qos.logback.core.status.StatusUtil.addError()

    StatusUtil statusUtil = new StatusUtil(context);
    try {
      return new ObjectName(objectNameAsStr);
    } catch (MalformedObjectNameException e) {
      statusUtil.addError(caller, msg, e);
      return null;
    } catch (NullPointerException e) {
      statusUtil.addError(caller, msg, e);
      return null;
    }
View Full Code Here

Examples of ch.ralscha.extdirectspring.bean.ExtDirectFormPostResult.addError()

  public ExtDirectFormPostResult updateInfoJsonDirectError(Locale locale,
      HttpServletRequest request, HttpServletResponse response,
      @Valid FormInfo formInfo) {

    ExtDirectFormPostResult e = new ExtDirectFormPostResult();
    e.addError("age", "age is wrong");
    return e;
  }

  @SuppressWarnings("unused")
  @ExtDirectMethod(value = ExtDirectMethodType.FORM_POST_JSON)
View Full Code Here

Examples of com.adito.testcontainer.StrutsExecutionStep.addError()

    protected final void testValidationFailure(String errorMessage) {
        StrutsExecutionStep executionStep = new StrutsExecutionStep(requestPath, "display", getForwardPath());
        executionStep.addRequestParameter("actionTarget", "commit");
        executionStep.addMessage("info.requiredFieldIndicator");
        executionStep.addError(errorMessage);
        executeStep(executionStep);
    }
   
    protected final void performActionAndVerifyTiles(String actionTarget) {
        performActionAndVerifyTiles(getRequestPath(), actionTarget, getForwardPath());
View Full Code Here

Examples of com.atlassian.bamboo.utils.error.ErrorCollection.addError()

        String repName = buildConfiguration.getString(Constants.PLASTIC_REPOSITORY);
        String repServer = buildConfiguration.getString(Constants.PLASTIC_REPOSITORYSERVER);
        String branch = buildConfiguration.getString(Constants.PLASTIC_BRANCH_TO_TRACK);

    if (repName == null || repName.trim().length() == 0) {
      errorCollection.addError(Constants.PLASTIC_REPOSITORY, "The repository name must be specified");
    }

    try  {
            BranchInfo brInfo;
            if (branch.equals(Constants.BR_NAME))
View Full Code Here

Examples of com.drew.metadata.Directory.addError()

                if (_data[subdirOffset+6]==1)
                    processDirectory(_metadata.getDirectory(NikonType1MakernoteDirectory.class), processedDirectoryOffsets, subdirOffset + 8, tiffHeaderOffset);
                else if (_data[subdirOffset+6]==2)
                    processDirectory(_metadata.getDirectory(NikonType2MakernoteDirectory.class), processedDirectoryOffsets, subdirOffset + 18, subdirOffset + 10);
                else
                    exifDirectory.addError("Unsupported makernote data ignored.");
            }
            else
            {
                // The IFD begins with the first MakerNote byte (no ASCII name).  This occurs with CoolPix 775, E990 and D1 models.
                processDirectory(_metadata.getDirectory(NikonType2MakernoteDirectory.class), processedDirectoryOffsets, subdirOffset, tiffHeaderOffset);
View Full Code Here

Examples of com.drew.metadata.exif.ExifSubIFDDirectory.addError()

    public void testHasErrors() throws Exception
    {
        Metadata metadata = new Metadata();
        assertFalse(metadata.hasErrors());
        final ExifSubIFDDirectory directory = metadata.getOrCreateDirectory(ExifSubIFDDirectory.class);
        directory.addError("Test Error 1");
        assertTrue(metadata.hasErrors());
    }

    @Test
    public void testGetErrors() throws Exception
View Full Code Here

Examples of com.ebay.sdk.attributes.model.ErrorSet.addError()

        Error err = validateAttr(attr, rules.item(r));
        if (err != null) {
          if (errSet == null)
            errSet = new ErrorSet(attrSet.getAttributeSetID());

          errSet.addError(err);
        }
      }
    }

    return errSet;
View Full Code Here

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

    final PatchSet patch = db.patchSets().get(patchSetId);
    if (patch == null) {
      throw new NoSuchChangeException(changeId);
    }
    if (!patch.isDraft()) {
      result.addError(new ReviewResult.Error(
          ReviewResult.Error.Type.NOT_A_DRAFT));
      return result;
    }

    if (!control.canPublish(db)) {
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.