Package com.caucho.quercus

Examples of com.caucho.quercus.QuercusRuntimeException


      return _regexp._prog.match(_subject, subject.length(), 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

    _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

      else if (len <= 24)
        keySize = 24;
      else if (len <= 32)
        keySize = 32;
      else
        throw new QuercusRuntimeException(L.l("Key too large for algorithm ({0} > 32)", len));
    }

    if (len == keySize)
      return keyData;
    else {
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

      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

  {
    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

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.