Package railo.runtime.exp

Examples of railo.runtime.exp.PageException


        Class<?> clazz = mapping.touchPCLCollection().loadClass(getClazz(), barr,isComponent());
        try{
          return  newInstance(clazz);
        }
        catch(Throwable t){
          PageException pe = Caster.toPageException(t);
          pe.setExtendedInfo("failed to load template "+getDisplayPath());
          throw pe;
        }
    }
View Full Code Here


    tries++;
    try {
      execute(config);
    }
    catch(Throwable t) {
      PageException pe = Caster.toPageException(t);
      String st = ExceptionUtil.getStacktrace(t,true);
      //config.getErrWriter().write(st+"\n");
     
      Struct sct=new StructImpl();
      sct.setEL("message", pe.getMessage());
      sct.setEL("detail", pe.getDetail());
      sct.setEL("stacktrace", st);
      sct.setEL("time", Caster.toLong(System.currentTimeMillis()));
      exceptions.appendEL(sct);
     
      throw pe;
View Full Code Here

     
     
     
      try {
      if(cfc.contains(pageContext, ON_ERROR)){
            PageException pe = Caster.toPageException(t);
            //Object rtn=cfc.call(pageContext, ON_ERROR, new Object[]{pe.getCatchBlock(pageContext),source});
         
            Struct args=new StructImpl(StructImpl.TYPE_LINKED);
            args.set(CFCATCH, pe.getCatchBlock(ThreadLocalPageContext.getConfig(pageContext)));
            args.set(SOURCE, source);
            Object rtn=cfc.callWithNamedValues(pageContext, ON_ERROR, args)
       
            if(Caster.toBooleanValue(rtn,false))
          throw t;
View Full Code Here

                exeTime=System.nanoTime();

                currentPage.call(this);
      }
      catch(Throwable t){
        PageException pe = Caster.toPageException(t);
        if(Abort.isAbort(pe)) {
                    if(Abort.isAbort(pe,Abort.SCOPE_REQUEST))throw pe;
                }
                else {
                  if(fdEnabled){
                    FDSignal.signal(pe, false);
                  }
                  pe.addContext(currentPage.getPageSource(),-187,-187, null);// TODO was soll das 187
                  throw pe;
                }
      }
      finally {
        includeOnce.add(currentPage.getPageSource());
        long diff= ((System.nanoTime()-exeTime)-(executionTime-currTime));
          executionTime+=(System.nanoTime()-time);
        debugEntry.updateExeTime(diff);
        removeLastPageSource(true);
     
    }
  // no debug
    else {
      Page currentPage = PageSourceImpl.loadPage(this, sources);
      if(runOnce && includeOnce.contains(currentPage.getPageSource())) return;
        try {
        addPageSource(currentPage.getPageSource(),true);
                currentPage.call(this);
      }
      catch(Throwable t){
        PageException pe = Caster.toPageException(t);
        if(Abort.isAbort(pe)) {
          if(Abort.isAbort(pe,Abort.SCOPE_REQUEST))throw pe;
                }
                else    {
                  pe.addContext(currentPage.getPageSource(),-187,-187, null);
                  throw pe;
                }
      }
      finally {
        includeOnce.add(currentPage.getPageSource());
View Full Code Here

     
     
     
      }
      catch(Throwable t) {
        PageException pe = Caster.toPageException(t);
        if(!Abort.isSilentAbort(pe)){
          log(true);
          if(fdEnabled){
              FDSignal.signal(pe, false);
            }
View Full Code Here

      try {
        listener.onRequest(this,base,null);
        log(false);
      }
      catch(Throwable t) {
        PageException pe = Caster.toPageException(t);
        if(!Abort.isSilentAbort(pe)){
          this.pe=pe;
          log(true);
          if(fdEnabled){
              FDSignal.signal(pe, false);
View Full Code Here

    detail.setEL("template", ct.getTemplate());
    return detail;
  }

  public Object execute(Config config) throws PageException {
    PageException pe = ct.execute(config);
    if(pe!=null) throw pe;
    return null;
  }
View Full Code Here

        return clazz;
    }
   
    private static Class<?> otherTypeToClass(String type) throws PageException, ClassException{
      PageContext pc = ThreadLocalPageContext.get();
      PageException pe=null;
        // try to load as cfc
      if(pc!=null)  {
          try {
            Component c = pc.loadComponent(type);
            return ComponentUtil.getServerComponentPropertiesClass(pc,c);
View Full Code Here

          me.setRootCause(e);
            me.setCode("Server.Processing");
            me.setRootCause(e);
           
            if(e instanceof PageException){
              PageException pe=(PageException) e;
              me.setDetails(pe.getDetail());
              me.setMessage(pe.getMessage());
              me.setCode(pe.getErrorCode());
            }
           
            throw me;
    }
    }
View Full Code Here

        if(c instanceof ConfigImpl) {
          ConfigImpl ci=(ConfigImpl) c;
          LogAndSource log = ci.getThreadLogger();
          if(log!=null)log.error(this.getName(), ExceptionUtil.getStacktrace(t,true));
        }
        PageException pe = Caster.toPageException(t);
        if(!serializable)catchBlock=pe.getCatchBlock(pc);
        return pe;
      }
    }
    finally {
      completed=true;
View Full Code Here

TOP

Related Classes of railo.runtime.exp.PageException

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.