Package org.woped.metrics.formulaEnhancement

Examples of org.woped.metrics.formulaEnhancement.EnhancementException


    try {
      double value = parser.evaluator();
      // The new Formula worked well. The user should be informed
      // that he should chance the formula. Therefore we throw a EnhancementException.
      // We have to find the ID of the formula
      throw new EnhancementException(formula, value);
    } catch (RecognitionException e2) {
      // If the error appears again --> Throw an Parsing-Error
      //throw new ParsingException(e, formula);
      throw new AntlrException(e);
    }   
View Full Code Here


    try {
      double value = parser.evaluator();
      // The new Formula worked well. The user should be informed
      // that he should chance the formula. Therefore we throw a EnhancementException.
      // We have to find the ID of the formula
      throw new EnhancementException(formula, value);
    } catch (FormulaVariableNotFoundException fvnfe) {
      // If the error appears again --> Throw the error again
      if (formula.contains(fvnfe.getVariable())) {
        int pos = formula.indexOf(fvnfe.getVariable())
            + fvnfe.getVariable().length();
View Full Code Here

    enhancedFormula = EOFEnhancements(ncfe,enhancedFormula, mc,
        stack, doNotDisplay, syntaxCheck);
   
   
    if(originalFormula.equals(enhancedFormula)==false){
      ncfe.addError(new EnhancementException(enhancedFormula,0.0));
      throw ncfe;
    }else{
      throw ncfe;
    }
 
View Full Code Here

TOP

Related Classes of org.woped.metrics.formulaEnhancement.EnhancementException

Copyright © 2018 www.massapicom. 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.