public static Throwable targetOf(Throwable t)
Throwable
. If the Throwable
is a
InvocationTargetException
, this method will return the "target exception" (not the cause.)
For other Throwable
s, the same instance is returned unmodified.t
- the given Throwable
.Throwable
passed
as argument.Copyright © 2007-2012 FEST (Fixtures for Easy Software Testing). All Rights Reserved.