Package libcore.util
Class SneakyThrow
- java.lang.Object
-
- libcore.util.SneakyThrow
-
public class SneakyThrow extends Object
Provides a hacky method that always throwsteven iftis a checked exception. and is not declared to be thrown. See http://www.mail-archive.com/javaposse@googlegroups.com/msg05984.html
-
-
Constructor Summary
Constructors Constructor Description SneakyThrow()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidsneakyThrow(Throwable t)A hacky method that always throwsteven iftis a checked exception, and is not declared to be thrown.
-
-
-
Method Detail
-
sneakyThrow
public static void sneakyThrow(Throwable t)
A hacky method that always throwsteven iftis a checked exception, and is not declared to be thrown.
-
-