java.io.Serializablepublic final class UncheckedException
extends java.lang.RuntimeException
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.Exception |
unwrap() |
Returns the checked exception wrapped by this
UncheckedException. |
static UncheckedException |
wrap(java.lang.Exception exception) |
Returns an
UncheckedException wrapping the given checked exception. |
public static UncheckedException wrap(java.lang.Exception exception)
UncheckedException wrapping the given checked exception.java.lang.IllegalArgumentException - if exception is nullpublic java.lang.Exception unwrap()
UncheckedException.