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 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()
Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.