Package com.caucho.quercus

Examples of com.caucho.quercus.QuercusRuntimeException


    */
   
    if (fun != null)
      return fun;
    else {
      throw new QuercusRuntimeException(L.l("{0}::{1} is an unknown method",
                                        getName(), name));
    }
  }
View Full Code Here


    Expr expr = _constMap.get(name);

    if (expr != null)
      return expr.eval(env);

    throw new QuercusRuntimeException(L.l("{0}::{1} is an unknown constant",
                                        getName(), name));
  }
View Full Code Here

        reader.close();
      }

      return sb;
    } catch (IOException e) {
      throw new QuercusRuntimeException(e);
    }
  }
View Full Code Here

  {
    try {
      return _object.openStream();
    }
    catch (IOException e) {
      throw new QuercusRuntimeException(e);
    }
  }
View Full Code Here

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

    _mode = mode.toUpperCase(Locale.ENGLISH);

    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

      if (isPadded())
        data = pad(data);

      return _cipher.doFinal(data);
    } catch (Exception e) {
        throw new QuercusRuntimeException(
                L.l(
                        "Failed to initialize the Security Cipher. \n"+
                        "Please consult http://quercus.caucho.com/mcrypt.xtp"
                ), e);
    }
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;
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

  /**
   * Converts to a key.
   */
  public Value toKey()
  {
    throw new QuercusRuntimeException(L.l("{0} is not a valid key", this));
  }
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.