java.lang.reflect.InvocationTargetException (JDK 1.1)
An object of this class is thrown by Method.invoke() and Constructor.newInstance() when an exception is thrown by the method or constructor invoked through those methods. The InvocationTargetException class serves as a wrapper around the object that was thrown; that object can be retrieved with the getTargetException() method.
public classInvocationTargetExceptionextends Exception { //Public ConstructorspublicInvocationTargetException(Throwabletarget); publicInvocationTargetException(Throwabletarget, Strings); //Protected ConstructorprotectedInvocationTargetException(); //Public Instance Methodspublic ThrowablegetTargetException(); }
Hierarchy:
Object->Throwable(Serializable)->Exception->InvocationTargetException
Thrown By:
Constructor.newInstance(), Method.invoke()