java.lang.reflect
public class InvocationTargetException extends Exception
getTargetException() still works.
Since: 1.1
See Also: Method#invoke(Object,Object[]) Constructor#newInstance(Object[])
UNKNOWN: updated to 1.4
| Constructor Summary | |
|---|---|
| protected | InvocationTargetException()
Construct an exception with null as the cause. |
| InvocationTargetException(Throwable targetException)
Create an InvocationTargetException using another
exception.
| |
| InvocationTargetException(Throwable targetException, String err)
Create an InvocationTargetException using another
exception and an error message.
| |
| Method Summary | |
|---|---|
| Throwable | getCause()
Returns the cause of this exception (which may be null).
|
| Throwable | getTargetException()
Get the wrapped (targeted) exception.
|
InvocationTargetException using another
exception.
Parameters: targetException the exception to wrap
InvocationTargetException using another
exception and an error message.
Parameters: targetException the exception to wrap err an extra reason for the exception-throwing
Returns: the cause
Since: 1.4
Returns: the targeted exception
See Also: getCause