Package com.caucho.quercus

Examples of com.caucho.quercus.QuercusRuntimeException


  /**
   * Converts to a key.
   */
  public Value toKey()
  {
    throw new QuercusRuntimeException(L.l("{0} is not a valid key", this));
  }
View Full Code Here


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

  return sublen;
      }
      else
  return -1;
    } catch (IOException e) {
      throw new QuercusRuntimeException(e);
    }
  }
View Full Code Here

        reader.close();
      }

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

    sublen = SIZE;
 
  out.write(_bufferList[chunk], 0, sublen);
      }
    } catch (IOException e) {
      throw new QuercusRuntimeException(e);
    }
  }
View Full Code Here

    try {
      //XXX: refactor so that env is passed in
      return toInputStream(Env.getInstance().getRuntimeEncoding());
    }
    catch (UnsupportedEncodingException e) {
      throw new QuercusRuntimeException(e);
    }
    //return new StringValueInputStream();
  }
View Full Code Here

      else
        return null;
    } catch (RuntimeException e) {
      throw e;
    } catch (Throwable e) {
      throw new QuercusRuntimeException(e);
    }
  }
View Full Code Here

    try {
      _jsonEncode.invoke(obj, env, sb);
      return true;
     
    } catch (InvocationTargetException e) {
      throw new QuercusRuntimeException(e);
    } catch (IllegalAccessException e) {
      throw new QuercusRuntimeException(e);
    }
  }
View Full Code Here

      }

      _printRImpl.invoke(obj, env, out, depth, valueSet);
      return true;
    } catch (InvocationTargetException e) {
      throw new QuercusRuntimeException(e);
    } catch (IllegalAccessException e) {
      throw new QuercusRuntimeException(e);
    }
  }
View Full Code Here

        return false;

      _varDumpImpl.invoke(javaObj, env, obj, out, depth, valueSet);
      return true;
    } catch (InvocationTargetException e) {
      throw new QuercusRuntimeException(e);
    } catch (IllegalAccessException e) {
      throw new QuercusRuntimeException(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.