Package railo.runtime.exp

Examples of railo.runtime.exp.MissingIncludeException


      else {
          page=loadArchive(page);
          if(page==null)page=loadPhysical(pc,page);
          if(page!=null) return page;
      }
    throw new MissingIncludeException(this);
     
  }
View Full Code Here


    Page p;
    for(int i=0;i<arr.length;i++) {
      p=arr[i].loadPage(pc,null);
      if(p!=null) return p;
    }
    throw new MissingIncludeException(arr[0]);
  }
View Full Code Here

  **/
  public void setTemplate(String template) throws MissingIncludeException  {
      PageSource sf=pageContext.getCurrentPageSource().getRealPage(template);
      //new PageSource(pageContext.getCurrentTemplateSourceFile(),template);
    if(!sf.exists())
      throw new MissingIncludeException(sf);
    errorPage.setTemplate(sf);
  }
View Full Code Here

    }
    else if(pe instanceof PageExceptionBox)
      pe=((PageExceptionBox)pe).getPageException();
   
    if(pe instanceof MissingIncludeException) {
      MissingIncludeException mie=(MissingIncludeException) pe;
      if(mie.getPageDeep()<=maxDeepFor404) statusCode=404;
    }
   
    // TODO Auto-generated method stub
    return statusCode;
  }
View Full Code Here

        return new LockException(operation,name,message);
    }
   
    @Override
    public PageException createMissingIncludeException(PageSource ps) {
        return new MissingIncludeException(ps);
    }
View Full Code Here

            if(StringUtil.startsWith(template,'/'))  {
              PageSource[] sources = ((PageContextImpl)pageContext).getPageSources(template);
              PageSource ps = MappingImpl.isOK(sources);
             
              if(ps==null)
          throw new MissingIncludeException(sources[0],"could not find template ["+template+"], file ["+sources[0].getDisplayPath()+"] doesn't exist");
              source=new InitFile(ps,template,template.endsWith('.'+pageContext.getConfig().getCFCExtension()));
            }
            else {
              source=new InitFile(pageContext.getCurrentPageSource().getRealPage(template),template,StringUtil.endsWithIgnoreCase(template,'.'+pageContext.getConfig().getCFCExtension()));
              if(!MappingImpl.isOK(source.getPageSource())){
          throw new MissingIncludeException(source.getPageSource(),"could not find template ["+template+"], file ["+source.getPageSource().getDisplayPath()+"] doesn't exist");
              }
            }
       
            //attributesScope.removeEL(TEMPLATE);
            setAppendix(source.getPageSource());
View Full Code Here

TOP

Related Classes of railo.runtime.exp.MissingIncludeException

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.