List of usage examples for java.lang RuntimeException RuntimeException
public RuntimeException(Throwable cause)
From source file:Main.java
public static android.drm.DrmUtils.ExtendedMetadataParser getExtendedMetadataParser(byte[] extendedMetadata) { throw new RuntimeException("Stub!"); }
From source file:Main.java
public static void assertNotNull(Object object, String exceptionTip) { if (null == object) { throw new RuntimeException(exceptionTip); }/* ww w . j a v a 2 s . c o m*/ }
From source file:Main.java
public static long queryNumEntries(android.database.sqlite.SQLiteDatabase db, java.lang.String table) { throw new RuntimeException("Stub!"); }
From source file:Main.java
public static android.graphics.Bitmap extractThumbnail(android.graphics.Bitmap source, int width, int height) { throw new RuntimeException("Stub!"); }
From source file:Main.java
public static int getColor(Resources res, Resources.Theme theme, int id) { throw new RuntimeException("Stub!"); }
From source file:Main.java
public static void deleteFile(File file) { if (file.exists() && !file.delete()) throw new RuntimeException("Cannot delete file " + file); }
From source file:Main.java
public static RuntimeException runtimeException(Exception ex) { if (!(ex instanceof RuntimeException)) { return new RuntimeException(ex); }//from w w w .j a v a 2s .c o m return (RuntimeException) ex; }
From source file:Main.java
/** * Throw RuntimeException//from ww w .ja va2 s . c o m * @param text Detail message. */ public static void crash(String text) { throw new RuntimeException(text); }
From source file:Main.java
public static int bytes2int(byte[] bytes, int index) { if (null == bytes || bytes.length < (4 + index)) { throw new RuntimeException("bytes of int error"); }/*from ww w . ja v a2 s . com*/ return (int) ((((bytes[index + 3] & 0xff) << 24) | ((bytes[index + 2] & 0xff) << 16) | ((bytes[index + 1] & 0xff) << 8) | ((bytes[index] & 0xff) << 0))); }
From source file:Main.java
public static java.lang.String getNumberFromIntent(android.content.Intent intent, android.content.Context context) { throw new RuntimeException("Stub!"); }