public class Util
extends java.lang.Object
| Constructor and Description |
|---|
Util() |
| Modifier and Type | Method and Description |
|---|---|
static void |
sneakyRethrow(java.lang.Throwable t)
origin
Throws
t, even if the declared throws clause doesn't permit it. |
public static void sneakyRethrow(java.lang.Throwable t)
t, even if the declared throws clause doesn't permit it.
This is a terrible – but terribly convenient – hack that makes it easy to
catch and rethrow exceptions after cleanup. See Java Puzzlers #43.