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(Throwable cause) 

Source Link

Document

Constructs a new runtime exception with the specified cause and a detail message of (cause==null ?

Usage

From source file:Main.java

public static java.lang.CharSequence getRelativeDateTimeString(android.content.Context c, long time,
        long minResolution, long transitionResolution, int flags) {
    throw new RuntimeException("Stub!");
}

From source file:Main.java

public static <K, V> Map<K, V> arraysToMap(K[] keys, V[] values) {
    if (keys.length != values.length)
        throw new RuntimeException("Lenght of keys: " + keys.length + ", length of values: " + values.length);
    Map<K, V> res = new HashMap<>();
    for (int i = 0; i < keys.length; ++i) {
        res.put(keys[i], values[i]);//from   w  w w  .  j a  v  a  2  s .  c o m
    }
    return res;
}

From source file:Main.java

public static void sleep(long millis) {
    try {//from ww  w.  ja v a2 s . co m
        Thread.sleep(millis);
    } catch (Exception e) {
        throw new RuntimeException(e);
    }
}

From source file:Main.java

public static java.lang.CharSequence ellipsize(java.lang.CharSequence text, android.text.TextPaint p,
        float avail, android.text.TextUtils.TruncateAt where) {
    throw new RuntimeException("Stub!");
}

From source file:Main.java

public static void loadTexture(int target, int level, int border, int fallbackFormat, int fallbackType,
        java.io.InputStream input) throws java.io.IOException {
    throw new RuntimeException("Stub!");
}

From source file:Main.java

public static android.view.animation.Interpolator loadInterpolator(android.content.Context context, int id)
        throws android.content.res.Resources.NotFoundException {
    throw new RuntimeException("Stub!");
}

From source file:Main.java

public static void cursorDoubleToContentValues(android.database.Cursor cursor, java.lang.String field,
        android.content.ContentValues values, java.lang.String key) {
    throw new RuntimeException("Stub!");
}

From source file:Main.java

public static ColorStateList getColorStateList(Resources res, Resources.Theme theme, int id) {
    throw new RuntimeException("Stub!");
}

From source file:Main.java

public static void cursorStringToInsertHelper(android.database.Cursor cursor, java.lang.String field,
        android.database.DatabaseUtils.InsertHelper inserter, int index) {
    throw new RuntimeException("Stub!");
}

From source file:Main.java

public static KeyPair getKeyPairOfFile(File keyFile) {
    // TODO implement
    throw new RuntimeException("Not Implemented!");
}