public class TigerThrower<T extends Throwable> extends Object
sneakyThrow(Throwable) which
enables you to throw any checked Exception from any method,
even if its type is not listed in the method signature. Copied from
Java Puzzlers.| Constructor and Description |
|---|
TigerThrower() |
| Modifier and Type | Method and Description |
|---|---|
static void |
sneakyThrow(Throwable t)
Will throw the given
Throwable. |
Copyright © 2017. All rights reserved.