Package com.caucho.quercus

Examples of com.caucho.quercus.QuercusRuntimeException


  {
    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

              if (! opt.value().equals("")) {
                try {
                  Expr expr = QuercusParser.parse(_moduleContext.getQuercus(), opt.value());
                  _defaultExprs[i] = expr;
                } catch (java.io.IOException e) {
                  throw new QuercusRuntimeException(e);
                }
              } else
                _defaultExprs[i] = exprFactory.createDefault();
            } else if (Reference.class.isAssignableFrom(ann.annotationType())) {
              isReference = true;
View Full Code Here

  public final void checkTimeout()
  {
    long now = System.currentTimeMillis();

    if (_endTime < now)
      throw new QuercusRuntimeException(L.l("script timed out"));
  }
View Full Code Here

  public AbstractFunction findFunction(String className, String methodName)
  {
    QuercusClass cl = findClass(className);

    if (cl == null)
      throw new QuercusRuntimeException(L.l("'{0}' is an unknown class",
                                            className));

    return cl.findFunction(methodName);
  }
View Full Code Here

    String fullMsg = msg + getFunctionLocation();

    error(B_ERROR, location, fullMsg);

    return new QuercusRuntimeException(fullMsg);
  }
View Full Code Here

              else if (length == 3)
                sb = sb.appendBytes("u0" + hex);
              else if (length == 4)
                sb = sb.appendBytes("u" + hex);
              else
                throw new QuercusRuntimeException(L.l("illegal hex escape"));

              i = tail;
            }
            else {
              sb = sb.appendByte('\\');
View Full Code Here

    _mode = mode.toUpperCase();

    String transformation = getTransformation(algorithm, mode);

    if (transformation == null)
      throw new QuercusRuntimeException(L.l("'{0}' is an unknown algorithm",
                                            algorithm));


    _cipher = Cipher.getInstance(transformation);
  }
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

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.