public final class UncheckedException extends RuntimeException
| Modifier and Type | Method and Description |
|---|---|
Exception |
unwrap()
Returns the checked exception wrapped by this
UncheckedException. |
static UncheckedException |
wrap(Exception exception)
Returns an
UncheckedException wrapping the given checked exception. |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic static UncheckedException wrap(Exception exception)
UncheckedException wrapping the given checked exception.IllegalArgumentException - if exception is nullpublic Exception unwrap()
UncheckedException.