Examples of TemplateException


Examples of railo.runtime.exp.TemplateException

      }
    }   


    if(!cfml.forwardIfCurrent(quoter))
      throw new TemplateException(cfml,"Invalid Syntax Closing ["+quoter+"] not found");
 
    LitString rtn = new LitString(str.toString(),line,cfml.getPosition());
    cfml.removeSpace();
    return rtn;
  }
View Full Code Here

Examples of railo.runtime.exp.TemplateException

    StringBuffer sb=new StringBuffer();
    Position line = cfml.getPosition();
    while(cfml.isValidIndex()) {
      if(cfml.isCurrent(' ') || cfml.isCurrent('>') || cfml.isCurrent("/>")) break;
      else if(cfml.isCurrent('"') || cfml.isCurrent('#') || cfml.isCurrent('\'')) {
        throw new TemplateException(cfml,"simple attribute value can't contain ["+cfml.getCurrent()+"]");
      }
      else sb.append(cfml.getCurrent());
      cfml.next();
    }
    cfml.removeSpace();
View Full Code Here

Examples of railo.runtime.exp.TemplateException

      sb.append(cfml.getCurrent());
      cfml.next();
    }
    //int endline=cfml.getLine();
    if(cfml.isAfterLast())
      throw new TemplateException(cfml,"missing end tag"); // TODO better error message
   
   
    if(true) throw new RuntimeException("not implemented");
    //MUST add again String dummyStart="public class Susi {public static void code(){"+StringUtil.repeatString("\n", startline-1);
   
    //MUST add again String dummyEnd="}}";
    //MUST add again String src=dummyStart+sb+dummyEnd;
    //MUST add again Label start=new Label();
    //MUST add again Label end=new Label();
   
    //MUST add again ByteArrayInputStream bais = new ByteArrayInputStream(src.getBytes());
   
    try {
      //MUST add again CompilationUnit cu = JavaParser.parse(bais);
      //MUST add again DataBag db = new DataBag();
      ScriptBody body=new ScriptBody();
      tag.setBody(body);
      //MUST add again new JavaParserVisitor(body,start,end).visit(cu, db);
     
    }
    catch (Exception e) {
      throw new TemplateException(cfml,e);
    }
  }
View Full Code Here

Examples of xdoclet.template.TemplateException

            engine.setTemplateURL(new File(fromFile).toURL());
            engine.setOutput(new File(toFile));
            engine.start();
        }
        catch (MalformedURLException e) {
            throw new TemplateException(e.getMessage());
        }
    }
View Full Code Here

Examples of xdoclet.template.TemplateException

            if (e.getNestedException() != null) {
                e.getNestedException().printStackTrace();
            }

            if (e.getNestedException() instanceof TemplateException) {
                TemplateException te = (TemplateException) e.getNestedException();

                if (log.isDebugEnabled()) {
                    log.error("Template Exception = " + te);
                    log.error("Nested Exception = " + te.getNestedException());
                }
            }
            throw e;
        }
    }
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.