Package org.fest.reflect.util
Class Throwables
java.lang.Object
org.fest.reflect.util.Throwables
Understands utility methods related to
Throwables.- Since:
- 1.2
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Throwables
private Throwables()
-
-
Method Details
-
targetOf
Obtains the target of the given. If theThrowableThrowableis a, this method will return the "target exception" (not the cause.) For otherInvocationTargetExceptionThrowables, the same instance is returned unmodified.- Parameters:
t- the givenThrowable.- Returns:
- the target exception, if applicable. Otherwise, this method returns the same
Throwablepassed as argument.
-