public final class Throwables
extends java.lang.Object
Throwables.| Modifier and Type | Method and Description |
|---|---|
static java.lang.Throwable |
targetOf(java.lang.Throwable t)
Obtains the target of the given
. |
public static java.lang.Throwable targetOf(java.lang.Throwable t)
Throwable. If the Throwable is a
InvocationTargetException, this method will return the "target exception" (not the cause.) For other
Throwables, the same instance is returned unmodified.t - the given Throwable.Throwable passed as
argument.Copyright © 2007-2013 FEST (Fixtures for Easy Software Testing). All Rights Reserved.