Package com.caucho.quercus

Examples of com.caucho.quercus.QuercusRuntimeException


    try {
      //XXX: refactor so that env is passed in
      return toInputStream(Env.getInstance().getRuntimeEncoding());
    }
    catch (UnsupportedEncodingException e) {
      throw new QuercusRuntimeException(e);
    }
    //return new StringValueInputStream();
  }
View Full Code Here


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

  {
    int major = _servletContext.getMajorVersion();
    int minor = _servletContext.getMinorVersion();

    if (major < 2 || major == 2 && minor < 4)
      throw new QuercusRuntimeException(L.l("Quercus requires Servlet API 2.4+."));
  }
View Full Code Here

  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 newer."));

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

View Full Code Here

      else
        return null;
    } catch (RuntimeException e) {
      throw e;
    } catch (Throwable e) {
      throw new QuercusRuntimeException(e);
    }
  }
View Full Code Here

  /**
   * Converts to a key.
   */
  public Value toKey()
  {
    throw new QuercusRuntimeException(L.l("{0} is not a valid key", this));
  }
View Full Code Here

  public void print(Env env, WriteStream out)
  {
    try {
      out.print(toReprString(env));
    } catch (IOException e) {
      throw new QuercusRuntimeException(e);
    }
  }
View Full Code Here

  {
    try {
      return new JavaMapAdapter<K,V>(getEnv(), _map, getClassDef());
    }
    catch (Exception e) {
      throw new QuercusRuntimeException(e);
    }
  }
View Full Code Here

    for (String iface : classDef.getInterfaces()) {
      // XXX: php/0cn2, but this is wrong:
      QuercusClass cl = Env.getInstance().findClass(iface, true, 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

             && _parent != null) {
      // php/093j
      return _parent.getFunction(_parent.getName());
    }
    else {
      throw new QuercusRuntimeException(L.l("{0}::{1} is an unknown method",
                                        getName(), toMethod(name, nameLen)));
    }
  }
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.