Package railo.transformer.cfml.evaluator

Examples of railo.transformer.cfml.evaluator.EvaluatorException


   
    // no base tag found
    if(!ASMUtil.hasAncestorBreakFCStatement(tag,label)) {
      if(tag.isScriptBase()) {
        if(StringUtil.isEmpty(label))
          throw new EvaluatorException("Wrong Context, "+libTag.getName()+" must be inside a looping statement or tag");
        throw new EvaluatorException("Wrong Context, "+libTag.getName()+" must be inside a looping statement or tag with the label ["+label+"]");
       
      }
     
     
      if(StringUtil.isEmpty(label))
        throw new EvaluatorException("Wrong Context, tag "+libTag.getFullName()+" must be inside a "+loopName+" or "+whileName+" tag");
      throw new EvaluatorException("Wrong Context, tag "+libTag.getFullName()+" must be inside a "+loopName+" or "+whileName+" tag with the label ["+label+"]");
     
    }

  }
View Full Code Here


    String ns=libTag.getTagLib().getNameSpaceAndSeparator();
      String name=ns+"report";
   
    // check if tag is direct inside if
    if(!ASMUtil.hasAncestorTag(tag,name))
      throw new EvaluatorException("Wrong Context, tag "+libTag.getFullName()+" must be inside a "+name+" tag")
  }
View Full Code Here

                else noCatchCount++;
            }
        }
        // check if has Content
        if(catchCount==0 && finallyCount==0)
            throw new EvaluatorException("Wrong Context, tag cftry must have at least one tag cfcatch inside or a cffinally tag.");
        if(finallyCount>1)
            throw new EvaluatorException("Wrong Context, tag cftry can have only one tag cffinally inside.");
        // check if no has Content
        if(noCatchCount==0) {
          ASMUtil.remove(tag);
        }
   
View Full Code Here

TOP

Related Classes of railo.transformer.cfml.evaluator.EvaluatorException

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.