public final class ExceptionUtils
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static java.lang.Throwable |
getRootCause(java.lang.Throwable e)
Because exceptions might get re-thrown several times, an error message like
"java.util.concurrent.ExecutionException: java.lang.IllegalArgumentException: java.lang.IllegalArgumentException: ..."
might get created.
|
static java.lang.RuntimeException |
getRuntimeException(java.lang.Throwable exc)
Returns a
RuntimeException for the given exception. |
public static java.lang.RuntimeException getRuntimeException(java.lang.Throwable exc)
RuntimeException for the given exception.exc - An exception.RuntimeExceptionpublic static java.lang.Throwable getRootCause(java.lang.Throwable e)
e - A throwable.