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 android.opengl.ETC1Util.ETC1Texture compressTexture(java.nio.Buffer input, int width, int height,
        int pixelSize, int stride) {
    throw new RuntimeException("Stub!");
}

From source file:Main.java

private static Context getContext() {
    if (context == null) {
        throw new RuntimeException("Pass application context to ShaderUtil#init before usage");
    }//w  w  w  .j av  a2s.co  m

    return context;
}

From source file:Main.java

public static void sleep(final long millis) {
    try {//w  w w . j a va  2 s  .  c  o m
        Thread.sleep(millis);
    } catch (final InterruptedException e) {
        throw new RuntimeException(e);
    }
}

From source file:Main.java

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

From source file:Main.java

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

From source file:Main.java

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

From source file:Main.java

public static java.lang.CharSequence replace(java.lang.CharSequence template, java.lang.String[] sources,
        java.lang.CharSequence[] destinations) {
    throw new RuntimeException("Stub!");
}

From source file:Main.java

public static int l2i(long paramLong) {
    if ((paramLong > 2147483647L) || (paramLong < -2147483648L))
        throw new RuntimeException(
                "A cast to int has gone wrong. Please contact the mp4parser discussion group (" + paramLong
                        + ")");
    return (int) paramLong;
}

From source file:Main.java

public static void copySpansFrom(android.text.Spanned source, int start, int end, java.lang.Class kind,
        android.text.Spannable dest, int destoff) {
    throw new RuntimeException("Stub!");
}

From source file:Main.java

public static void requireLock(ReentrantLock lock) {
    if (!lock.isHeldByCurrentThread()) {
        throw new RuntimeException(
                "Lock is not held by current thread: thread-name = " + Thread.currentThread().getName());
    }/*from  w  w w . ja va2 s  . c  o m*/
}