Package com.caucho.quercus

Examples of com.caucho.quercus.QuercusRuntimeException


  private static void checkJavaVersion()
  {
    String version = System.getProperty("java.version");

    if (version.startsWith("1.3.") || version.startsWith("1.4."))
      throw new QuercusRuntimeException(L.l("Quercus requires JDK 1.5 or higher."));

    /*
    int major = 0;
    int minor = 0;

View Full Code Here


    try {
      Path path = new StringPath(str);
     
      return new QuercusParser(null, path, path.openRead()).parseExpr();
    } catch (IOException e) {
      throw new QuercusRuntimeException(e);
    }
  }
View Full Code Here

     
      parser._factory = factory;
     
      return parser.parseExpr();
    } catch (IOException e) {
      throw new QuercusRuntimeException(e);
    }
  }
View Full Code Here

      Value value = null;
     
      try {
        value = e.toValue(env);
      } catch (Throwable e1) {
        throw new QuercusRuntimeException(e1);
      }

      for (int i = 0; i < _catchList.size(); i++) {
        Catch item = _catchList.get(i);
       
View Full Code Here

        return def;
      } catch (RuntimeException e) {
        throw e;
      } catch (Exception e) {
        throw new QuercusRuntimeException(e);
      }
    }
  }
View Full Code Here

      cl = Env.getInstance().findClass(iface,
                                       ! isJavaClassDef,
                                       true);

      if (cl == null)
        throw new QuercusRuntimeException(L.l("cannot find interface {0}",
                                              iface));

      // _instanceofSet.addAll(cl.getInstanceofSet());
       
      ClassDef ifaceDef = cl.getClassDef();
View Full Code Here

    */
   
    if (fun != null)
      return fun;
    else {
      throw new QuercusRuntimeException(L.l("{0}::{1} is an unknown method",
                                            getName(), name));
    }
  }
View Full Code Here

    Object obj = _constJavaMap.get(name);
   
    if (obj != null)
      return env.wrapJava(obj);

    throw new QuercusRuntimeException(L.l("{0}::{1} is an unknown constant",
                                          getName(), name));
  }
View Full Code Here

        reader.close();
      }

      return sb;
    } catch (IOException e) {
      throw new QuercusRuntimeException(e);
    }
  }
View Full Code Here

  {
    try {
      return _url.openStream();
    }
    catch (IOException e) {
      throw new QuercusRuntimeException(e);
    }
  }
View Full Code Here

TOP

Related Classes of com.caucho.quercus.QuercusRuntimeException

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.