java.lang.reflect.InvocationTargetException
java.lang.Exception
None
None
New as of JDK 1.1
An InvocationTargetException is thrown when a constructor called through Constructor.newInstance(), or a method called through Method.invoke()throws an exception. The InvocationTargetException encapsulates the thrown exception, which can be retrieved using getTargetException().
public class java.lang.reflect.InvocationTargetException extends java.lang.Exception { // Constructors protected InvocationTargetException(); public InvocationTargetException(Throwable target); public InvocationTargetException(Throwable target, String s); // Instance Methods public Throwable getTargetException(); }
This constructor creates an InvocationTargetException.
The exception thrown by the target constructor or method.
This constructor creates an InvocationTargetException around the given exception with no associated detail message.
The exception thrown by the target constructor or method.
A detail message.
This constructor creates an InvocationTargetException around the given exception with the given detail message.
The exception thrown by the target constructor or method.
This method returns the exception that was originally thrown by the constructor or method.
Method |
Inherited From |
Method |
Inherited From |
---|---|---|---|
clone() |
Object |
equals(Object) |
Object |
fillInStackTrace() |
Throwable |
finalize() |
Object |
getClass() |
Object |
getLocalizedMessage() |
Throwable |
getMessage() |
Throwable |
hashCode() |
Object |
notify() |
Object |
notifyAll() |
Object |
printStackTrace() |
Throwable |
printStackTrace(PrintStream) |
Throwable |
printStackTrace(PrintWriter) |
Throwable |
toString() |
Throwable |
wait() |
Object |
wait(long) |
Object |
wait(long, int |
Object |
Constructor, Method, Throwable
This HTML Help has been published using the chm2web software. |