public final class UncheckedException
extends java.lang.RuntimeException
| Constructor and Description |
|---|
UncheckedException(java.lang.Throwable cause) |
| 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 |
unwrapAndRethrow(java.lang.reflect.InvocationTargetException e)
Uwraps 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 unwrapAndRethrow(java.lang.reflect.InvocationTargetException e)
e - to be unwrappedCopyright © 2013. All rights reserved