| public class java.lang.reflect InvocationTargetException
|
Java SE 6 |
As of release 1.4, this exception has been retrofitted to conform to
the general purpose exception-chaining mechanism. The "target exception"
that is provided at construction time and accessed via the
#getTargetException() method is now known as the cause,
and may be accessed via the Throwable#getCause() method,
as well as the aforementioned "legacy method."
| See also | java.lang.reflect.Method, java.lang.reflect.Constructor |
| Constructors | |||||
|---|---|---|---|---|---|
| protected | InvocationTargetException() Constructs an InvocationTargetException with
null as the target exception.
| ||||
| public | InvocationTargetException(Throwable target) Details
Constructs a InvocationTargetException with a target exception.
| ||||
| public | InvocationTargetException(Throwable target, String s) Details
Constructs a InvocationTargetException with a target exception
and a detail message.
| ||||
| Properties | |||||
|---|---|---|---|---|---|
| public Throwable | getCause() Details
Returns the cause of this exception (the thrown target exception,
which may be null).
| ||||
| public Throwable | getTargetException() Details
Get the thrown target exception.
This method predates the general-purpose exception chaining facility.
The
| ||||
| About DocWeb · Bundles · Export · Export All | Top 10 · Statistics · Login |
| About Sun · Contact · Privacy · Terms of Use · Trademarks | Java SE 6 · Copyright © 1994-2009 Sun Microsystems, Inc.All rights reserved. Use is subject to license terms |
![]() |
![]() |
|