Example usage for java.lang RuntimeException RuntimeException

List of usage examples for java.lang RuntimeException RuntimeException

Introduction

In this page you can find the example usage for java.lang RuntimeException RuntimeException.

Prototype

public RuntimeException() 

Source Link

Document

Constructs a new runtime exception with null as its detail message.

Usage

From source file:Main.java

public static byte[] base64_decode(String s) {
    ByteArrayOutputStream bos = new ByteArrayOutputStream();
    try {/*from  www  .  j  a v a  2 s  .  com*/
        decode(s, bos);
    } catch (IOException e) {
        throw new RuntimeException();
    }
    byte[] decodedBytes = bos.toByteArray();
    try {
        bos.close();
        bos = null;
    } catch (IOException ex) {
        System.err.println("Error while decoding BASE64: " + ex.toString());
    }
    return decodedBytes;
}

From source file:Main.java

/**
 * Wrapper over newCachedThreadPool. Thread names are formatted as prefix-ID, where ID is a
 * unique, sequentially assigned integer.
 * @param prefix (undocumented)/*from ww  w  .  j  a v a2  s  .  c  o  m*/
 * @return (undocumented)
 */
static public java.util.concurrent.ThreadPoolExecutor newDaemonCachedThreadPool(java.lang.String prefix) {
    throw new RuntimeException();
}