Examples of PageRuntimeException


Examples of railo.runtime.exp.PageRuntimeException

      synchronized (locks) {wrap.getLock().dec();}
      throw e;
    }
    catch(Throwable t){
      synchronized (locks) {wrap.getLock().dec();}
      throw new PageRuntimeException(Caster.toPageException(t));
    }
    return wrap;
  }
View Full Code Here

Examples of railo.runtime.exp.PageRuntimeException

    return connStr;
  }

  @Override
  public String getDatabase() {
    throw new PageRuntimeException(new ApplicationException("Datasource defined in the Application.cfc has no name."));
  }
View Full Code Here

Examples of railo.runtime.exp.PageRuntimeException

  }


  private PageRuntimeException exp() {
    //return new MethodNotSupportedException();
    throw new PageRuntimeException(new ApplicationException("method not supported"));
  }
View Full Code Here

Examples of railo.runtime.exp.PageRuntimeException

  /**
   * call back error function if a error occour
   * @param pe
   */
  private void error(PageException pe) {
    if(error==null) throw new PageRuntimeException(pe);
    try {
      pc=ThreadLocalPageContext.get(pc);
      error.call(pc,new Object[]{pe.getCatchBlock(pc.getConfig())},false);
    }
    catch (PageException e) {}
View Full Code Here

Examples of railo.runtime.exp.PageRuntimeException

      stat.getClass().getMethod("closeOnCompletion", new Class[0]).invoke(stat, new Object[0]);
    }
    catch (Throwable t) {
      if(t instanceof InvocationTargetException && ((InvocationTargetException)t).getTargetException() instanceof SQLException)
        throw (SQLException)((InvocationTargetException)t).getTargetException();
      throw new PageRuntimeException(Caster.toPageException(t));
    }
  }
View Full Code Here

Examples of railo.runtime.exp.PageRuntimeException

      return Caster.toBooleanValue(stat.getClass().getMethod("isCloseOnCompletion", new Class[0]).invoke(stat, new Object[0]));
    }
    catch (Throwable t) {
      if(t instanceof InvocationTargetException && ((InvocationTargetException)t).getTargetException() instanceof SQLException)
        throw (SQLException)((InvocationTargetException)t).getTargetException();
      throw new PageRuntimeException(Caster.toPageException(t));
    }
  }
View Full Code Here

Examples of railo.runtime.exp.PageRuntimeException

    @Override
    public Collection.Key next() {
        try {
      return Caster.toKey(COMUtil.toObject(wrapper,enumVariant.Next(),"",null));
    } catch (CasterException e) {
      throw new PageRuntimeException(e);
    }
    }
View Full Code Here

Examples of railo.runtime.exp.PageRuntimeException

  public void remove(DataSource datasource) {
    config.getDatasourceConnectionPool().remove(datasource);
  }

  public void remove(String datasource) {
    throw new PageRuntimeException(new DeprecatedException("method no longer supported!"));
    //config.getDatasourceConnectionPool().remove(datasource);
  }
View Full Code Here

Examples of railo.runtime.exp.PageRuntimeException

    GatewayEntry entry;
    try {
      entry = getGatewayEntry(gatewayId);
    }
    catch (PageException pe) {
      throw new PageRuntimeException(pe);
    }
    String cfcPath = entry.getListenerCfcPath();
    if(!Util.isEmpty(cfcPath,true)){
      try {
        if(!callOneWay(cfcPath,gatewayId, method, Caster.toStruct(data,null,false), false))
View Full Code Here

Examples of railo.runtime.exp.PageRuntimeException

      return cfc.call(
          ThreadLocalPageContext.get(),
          methodName,
          arguments);
    } catch (PageException pe) {
      throw new PageRuntimeException(pe);
    }
  }
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.