class ExceptionUtil extends Object
| Constructor and Description |
|---|
ExceptionUtil() |
| Modifier and Type | Method and Description |
|---|---|
private static <T extends Throwable> |
doSneakyThrow(Throwable t) |
static void |
sneakyThrow(Throwable t)
Allows to throw an unchecked exception without declaring it in a throws clause.
|
ExceptionUtil()
public static void sneakyThrow(Throwable t)
t - throwable to throwprivate static <T extends Throwable> void doSneakyThrow(Throwable t) throws T extends Throwable
T extends ThrowableCopyright © 2019. All rights reserved.