public class ExceptionUtils extends Object
| Constructor and Description |
|---|
ExceptionUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
handleThrowable(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 Throwable |
unwrapInvocationTargetException(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(Throwable t)
t - the Throwable to checkpublic static Throwable unwrapInvocationTargetException(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-2020 Apache Software Foundation. All Rights Reserved.