public final class UncheckedException
extends java.lang.RuntimeException
| Modifier and Type | Method and Description |
|---|---|
static java.lang.RuntimeException |
throwAsUncheckedException(java.lang.Throwable t)
Note: always throws the failure in some form.
|
static java.lang.RuntimeException |
throwAsUncheckedException(java.lang.Throwable t,
boolean preserveMessage)
Note: always throws the failure in some form.
|
static <T> T |
unchecked(java.util.concurrent.Callable<T> callable) |
static java.lang.RuntimeException |
unwrapAndRethrow(java.lang.reflect.InvocationTargetException e)
Unwraps passed InvocationTargetException hence making the stack of exceptions cleaner without losing information.
|
public static java.lang.RuntimeException throwAsUncheckedException(java.lang.Throwable t)
public static java.lang.RuntimeException throwAsUncheckedException(java.lang.Throwable t,
boolean preserveMessage)
public static <T> T unchecked(java.util.concurrent.Callable<T> callable)
public static java.lang.RuntimeException unwrapAndRethrow(java.lang.reflect.InvocationTargetException e)
e - to be unwrapped