public class SneakyThrow extends Object
t even if t is a checked exception.
and is not declared to be thrown.
See
http://www.mail-archive.com/javaposse@googlegroups.com/msg05984.html| Constructor and Description |
|---|
SneakyThrow() |
| Modifier and Type | Method and Description |
|---|---|
static void |
sneakyThrow(Throwable t)
A hacky method that always throws
t even if t is a checked exception,
and is not declared to be thrown. |
public static void sneakyThrow(Throwable t)
t even if t is a checked exception,
and is not declared to be thrown.