public class UncheckedThrow extends Object
Constructor and Description |
---|
UncheckedThrow() |
Modifier and Type | Method and Description |
---|---|
static void |
throwAnyException(Exception e)
Throw any kind of exception without needing it to be checked
|
static void |
throwAnyException(Throwable e)
Throw any kind of throwable without needing it to be checked
|
public static void throwAnyException(Exception e)
e
- any instance of a Exceptionpublic static void throwAnyException(Throwable e)
e
- any instance of a Throwable