Examples of PageException


Examples of railo.runtime.exp.PageException

        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

Examples of railo.runtime.exp.PageException

          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

Examples of railo.runtime.exp.PageException

        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

Examples of railo.runtime.exp.PageException

    }
  }
 

  private PageException handlePageException(PageContextImpl pci, ComponentAccess app, PageException pe, PageSource requestedPage, String targetPage, RefBoolean goon) throws PageException {
    PageException _pe=pe;
    if(pe instanceof ModernAppListenerException) {
      _pe=((ModernAppListenerException) pe).getPageException();
    }
   
    if(!Abort.isSilentAbort(_pe)) {
View Full Code Here

Examples of railo.runtime.exp.PageException

    }
    private void doRemoveAllSpoolerTask() {
      ((SpoolerEngineImpl)config.getSpoolerEngine()).removeAll();
    }
    private void doExecuteSpoolerTask() throws PageException {
      PageException pe = config.getSpoolerEngine().execute(getString("admin",action,"id"));
    if(pe!=null) throw pe;
    }
View Full Code Here

Examples of railo.runtime.exp.PageException

    return call(pc,base,sortType,sortOrder,null);
  }
  public static Array call(PageContext pc , Struct base, String sortType, String sortOrder, String pathToSubElement) throws PageException {

    boolean isAsc=true;
    PageException ee=null;
    if(sortOrder.equalsIgnoreCase("asc"))isAsc=true;
    else if(sortOrder.equalsIgnoreCase("desc"))isAsc=false;
    else throw new ExpressionException("invalid sort order type ["+sortOrder+"], sort order types are [asc and desc]");
   
    Collection.Key[] keys = CollectionUtil.keys(base);
View Full Code Here

Examples of railo.runtime.exp.PageException

      if(ArrayUtil.isEmpty(items))
        throw new ApplicationException("no file send with this form");
      return items[0];
    }
     
    PageException pe = pageContext.formScope().getInitException();
    if(pe!=null) throw pe;
    railo.runtime.type.scope.Form upload = pageContext.formScope();
    FormItem fileItem = upload.getUploadResource(filefield);
    if(fileItem==null) {
      FormItem[] items = upload.getFileItems();
View Full Code Here

Examples of railo.runtime.exp.PageException

   
    return fileItem;
  }
 
  private static FormItem[] getFormItems(PageContext pageContext) throws PageException {
    PageException pe = pageContext.formScope().getInitException();
    if(pe!=null) throw pe;
   
    Form scope = pageContext.formScope();
    return scope.getFileItems();
  }
View Full Code Here

Examples of railo.runtime.exp.PageException

            AMFError error=new AMFError();
            e.setStackTrace(e.getStackTrace());
            error.setDescription(e.getMessage());
     
      if(e instanceof PageException){
        PageException pe = (PageException)e;
              error.setCode(pe.getErrorCode());
              error.setCode(pe.getErrorCode());
              error.setDetails(pe.getDetail());
      }
     
      return error;
    }
    }
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.