Package org.dmd.util.exceptions

Examples of org.dmd.util.exceptions.ResultException.addError()


     * @throws DmcValueExceptionSet
     */
    void addSlice(SliceDefinition sd) throws ResultException, DmcValueException {
        if (checkAndAdd(sd.getObjectName(),sd,sliceDefs) == false){
          ResultException ex = new ResultException();
          ex.addError(clashMsg(sd.getObjectName(),sd,sliceDefs,"slice names"));
          throw(ex);
        }
        if (checkAndAdd(sd.getObjectName(),sd,allDefs) == false){
          ResultException ex = new ResultException();
          ex.addError(clashMsg(sd.getObjectName(),sd,allDefs,"definition names"));
View Full Code Here


          ex.addError(clashMsg(sd.getObjectName(),sd,sliceDefs,"slice names"));
          throw(ex);
        }
        if (checkAndAdd(sd.getObjectName(),sd,allDefs) == false){
          ResultException ex = new ResultException();
          ex.addError(clashMsg(sd.getObjectName(),sd,allDefs,"definition names"));
            throw(ex);
        }
    }

    /**
 
View Full Code Here

     * @throws DmcValueExceptionSet
     */
    void addRuleCategory(RuleCategory rc) throws ResultException, DmcValueException {
        if (checkAndAdd(rc.getObjectName(),rc,ruleCategoryDefs) == false){
          ResultException ex = new ResultException();
          ex.addError(clashMsg(rc.getObjectName(),rc,ruleCategoryDefs,"rule categories"));
          throw(ex);
        }
        if (checkAndAdd(rc.getObjectName(),rc,allDefs) == false){
          ResultException ex = new ResultException();
          ex.addError(clashMsg(rc.getObjectName(),rc,allDefs,"definition names"));
View Full Code Here

          ex.addError(clashMsg(rc.getObjectName(),rc,ruleCategoryDefs,"rule categories"));
          throw(ex);
        }
        if (checkAndAdd(rc.getObjectName(),rc,allDefs) == false){
          ResultException ex = new ResultException();
          ex.addError(clashMsg(rc.getObjectName(),rc,allDefs,"definition names"));
            throw(ex);
        }
       
        if (performIDChecks){
          // Bump up the rule category ID by the amount of schemaBaseID
View Full Code Here

          rc.setRuleCategoryID(base + current);
        }

        if (ruleCategoriesByID.get(rc.getRuleCategoryID()) != null){
          ResultException ex = new ResultException();
          ex.addError(clashMsg(rc.getRuleCategoryID(),rc,ruleCategoriesByID,"ruleCategoryID"));
          throw(ex);       
        }
    }

    /**
 
View Full Code Here

      // attributes that are defined for it and add them to the class definition we create
        try {
      rd.resolveReferences(this);
    } catch (DmcValueExceptionSet e) {     
      ResultException ex = new ResultException();
      ex.addError("Unresolved references in RuleDefinition: " + rd.getName());
     
      for(DmcValueException dve : e.getExceptions()){
        ex.moreMessages(dve.getMessage());
      }
      throw(ex);
View Full Code Here

     
      StringName ruleClassName = new StringName(rd.getName().getNameString() + "Data");
     
        if (checkAndAdd(rd.getObjectName(),rd,ruleDefs) == false){
          ResultException ex = new ResultException();
          ex.addError(clashMsg(rd.getObjectName(),rd,ruleDefs,"rule definitions"));
          throw(ex);
        }
        if (checkAndAdd(rd.getObjectName(),rd,allDefs) == false){
          ResultException ex = new ResultException();
          ex.addError(clashMsg(rd.getObjectName(),rd,allDefs,"definition names"));
View Full Code Here

          ex.addError(clashMsg(rd.getObjectName(),rd,ruleDefs,"rule definitions"));
          throw(ex);
        }
        if (checkAndAdd(rd.getObjectName(),rd,allDefs) == false){
          ResultException ex = new ResultException();
          ex.addError(clashMsg(rd.getObjectName(),rd,allDefs,"definition names"));
            throw(ex);
        }
       
        if (performIDChecks){
          // Bump up the DMD ID by the amount of schemaBaseID
View Full Code Here

       
        // We check that the ID of the rule doesn't clash with the class definitions, since we're
        // going to create a class for this rule with the rule's ID.
        if (classesByID.get(rd.getDmdID()) != null){
          ResultException ex = new ResultException();
          ex.addError(clashMsg(rd.getDmdID(),rd,classesByID,"dmdID"));
          throw(ex);
        }
       
        ///////////////////////////////////////////////////////////////////////
       
View Full Code Here

     */
    void addClass(ClassDefinition cd) throws ResultException, DmcValueException {

        if (checkAndAdd(cd.getObjectName(),cd,classDefs) == false){
          ResultException ex = new ResultException();
          ex.addError(clashMsg(cd.getObjectName(),cd,classDefs,"class names"));
          throw(ex);
        }
       
        if (checkAndAdd(cd.getObjectName(),cd,allDefs) == false){
          ResultException ex = new ResultException();
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.