public class ExceptionUtils
extends java.lang.Object
| Constructor and Description |
|---|
ExceptionUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
handleThrowable(java.lang.Throwable t)
Checks whether the supplied Throwable is one that needs to be
rethrown and swallows all others.
|
static void |
preload()
NO-OP method provided to enable simple pre-loading of this class.
|
static java.lang.Throwable |
unwrapInvocationTargetException(java.lang.Throwable t)
Checks whether the supplied Throwable is an instance of
InvocationTargetException and returns the throwable that is
wrapped by it, if there is any. |
public static void handleThrowable(java.lang.Throwable t)
t - the Throwable to checkpublic static java.lang.Throwable unwrapInvocationTargetException(java.lang.Throwable t)
InvocationTargetException and returns the throwable that is
wrapped by it, if there is any.t - the Throwable to checkt or t.getCause()public static void preload()
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.