List of usage examples for java.lang RuntimeException RuntimeException
public RuntimeException(Throwable cause)
From source file:Main.java
public static void readExceptionWithFileNotFoundExceptionFromParcel(android.os.Parcel reply) throws java.io.FileNotFoundException { throw new RuntimeException("Stub!"); }
From source file:Main.java
public static int bytesToInt(byte[] values) { if (values == null || values.length == 0 || values.length > 4) { throw new RuntimeException("valid byte array"); }/*from w w w . jav a 2 s . com*/ int ret = 0; int len = values.length - 1; for (int i = 0; i < len; ++i) { ret |= (values[i] & 0xff); ret <<= 8; } ret |= (values[len] & 0xff); return ret; }
From source file:Main.java
public static void checkDatasExist(Object[] datas) { if (datas == null || datas.length == 0) throw new RuntimeException("datas can't be empty"); }
From source file:Main.java
public static void writeTexture(android.opengl.ETC1Util.ETC1Texture texture, java.io.OutputStream output) throws java.io.IOException { throw new RuntimeException("Stub!"); }
From source file:Main.java
public static void sleep(long millisecs) { try {//ww w. jav a2s .c o m Thread.sleep(millisecs); } catch (InterruptedException e) { throw new RuntimeException(e); } }
From source file:Main.java
public static float bytes2float(byte[] bytes, int index) { if (null == bytes || bytes.length < (4 + index)) { throw new RuntimeException("bytes of float error"); }/*from w ww . j a v a2 s .c o m*/ int temp = bytes[index]; temp &= 0xff; temp |= ((long) bytes[index + 1] << 8); temp &= 0xffff; temp |= ((long) bytes[index + 2] << 16); temp &= 0xffffff; temp |= ((long) bytes[index + 3] << 24); return Float.intBitsToFloat(temp); }
From source file:Main.java
public static java.lang.String formatDateRange(android.content.Context context, long startMillis, long endMillis, int flags) { throw new RuntimeException("Stub!"); }
From source file:Main.java
public static final java.lang.String guessFileName(java.lang.String url, java.lang.String contentDisposition, java.lang.String mimeType) { throw new RuntimeException("Stub!"); }
From source file:Main.java
public static void sleep(int timeInMillis) { try {/*from w ww . j a va2 s . c om*/ Thread.sleep(timeInMillis); } catch (InterruptedException e) { throw new RuntimeException(e); } }
From source file:Main.java
public static Thread newThread(Runnable r, String name) { if (TextUtils.isEmpty(name)) { throw new RuntimeException("thread name should not be empty"); }/* w ww.j a v a 2 s . c o m*/ return new Thread(r, getStandardThreadName(name)); }