Package com.caucho.quercus

Examples of com.caucho.quercus.QuercusException


    _resultSetMetaData = metaData;
   
    try {
      _columnEncodings = new String[metaData.getColumnCount()];
    } catch (SQLException e) {
      throw new QuercusException(e);
    }
  }
View Full Code Here


      Object result = method.invoke(_resultSetMetaData, column);
     
      return (String) result;
     
    } catch (NoSuchMethodException e) {
      throw new QuercusException(e);
    } catch (InvocationTargetException e) {
      throw new QuercusException(e);
    } catch (IllegalAccessException e) {
      throw new QuercusException(e);
    }
  }
View Full Code Here

  {
    try {
      subject = _regexp.convertSubject(env, subject);
     
      if (subject == null)
        throw new QuercusException(L.l("error converting subject to utf8"));
   
      _subject = subject;
      _first = 0;

      return find();
View Full Code Here

        log.finest(this + " find(" + subject + ")");
   
      subject = _regexp.convertSubject(env, subject);
     
      if (subject == null)
        throw new QuercusException(L.l("error converting subject to utf8"));
   
      _subject = subject;

      _first = first;
      clearGroup();
View Full Code Here

        log.finest(this + " exec(" + subject + ")");
   
      subject = _regexp.convertSubject(env, subject);

      if (subject == null)
        throw new QuercusException(L.l("error converting subject to utf8"));

      clearGroup();
   
      _start = start;
      _first = start;
View Full Code Here

  {
    AbstractFunction staticFun
      = _quercus.findLowerFunctionImpl(name.toLowerCase());

    if (staticFun != null)
      throw new QuercusException(L.l("can't redefine function {0}", name));
   
    int id = _quercus.getFunctionId(name);

    // XXX: anonymous/generated functions(?), e.g. like foo2431

    if (_fun.length <= id) {
      AbstractFunction []funMap = new AbstractFunction[id + 256];
      System.arraycopy(_fun, 0, funMap, 0, _fun.length);
      _fun = funMap;
    }

    if (_fun[id] != null && ! (_fun[id] instanceof UndefinedFunction))
      throw new QuercusException(L.l("can't redefine function {0}", name));

    _fun[id] = fun;

    return BooleanValue.TRUE;
  }
View Full Code Here

   * Saves the current state
   */
  public SaveState saveState()
  {
    if (_globalMap != _map)
      throw new QuercusException(L.l("Env.saveState() only allowed at top level"));
   
    return new SaveState(this,
                         _fun,
                         _classDef,
                         _qClass,
View Full Code Here

      QuercusClass cl = findClass(classId, true, true);
     
      if (cl != null)
        return cl;
      else
        throw new QuercusException(L.l("'{0}' is an unknown class",
                                       _quercus.getClassName(classId)));
    }

    int parentId = -1;
View Full Code Here

      pageInit(page);

      executePage(page);
    } catch (IOException e) {
      throw new QuercusException(e);
    }
  }
View Full Code Here

  {
    int mask = 1 << B_WARNING;
   
    if ((_errorMask & mask) != 0) {
      if (log.isLoggable(Level.FINER)) {
        QuercusException e = new QuercusException(msg);

        log.log(Level.FINER, e.toString(), e);
      }
    }

    return error(B_WARNING, "", msg + getFunctionLocation());
  }
View Full Code Here

TOP

Related Classes of com.caucho.quercus.QuercusException

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.