Package com.caucho.quercus

Examples of com.caucho.quercus.QuercusRuntimeException


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


      return false;
    } catch (StackOverflowError e) {
      log.warning(L.l("regexp '{0}' produces a StackOverflowError for\n{1}",
                      _regexp, _subject));

      throw new QuercusRuntimeException(
          L.l("regexp '{0}' produces a StackOverflowError", _regexp), e);
    }
  }
View Full Code Here

      return find();
    } catch (StackOverflowError e) {
      log.warning(L.l("regexp '{0}' produces a StackOverflowError for\n{1}",
                      _regexp, subject));

      throw new QuercusRuntimeException(
          L.l("regexp '{0}' produces a StackOverflowError", _regexp), e);
    }
  }
View Full Code Here

      return _regexp._prog.match(_subject, _subjectLength, first, this);
    } catch (StackOverflowError e) {
      log.warning(L.l("regexp '{0}' produces a StackOverflowError for\n{1}",
                      _regexp, subject));

      throw new QuercusRuntimeException(
          L.l("regexp '{0}' produces a StackOverflowError", _regexp), e);
    }
  }
View Full Code Here

      return -1;
    } catch (StackOverflowError e) {
      log.warning(L.l("regexp '{0}' produces a StackOverflowError for\n{1}",
                      _regexp, subject));

      throw new QuercusRuntimeException(
          L.l("regexp '{0}' produces a StackOverflowError", _regexp), e);
    }
  }
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

  {
    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

        return def;
      } catch (RuntimeException e) {
        throw e;
      } catch (Exception e) {
        throw new QuercusRuntimeException(e);
      }
    }
  }
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 higher."));
  }
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.