home | O'Reilly's CD bookshelfs | FreeBSD | Linux | Cisco | Cisco Exam  

Java in a Nutshell

Previous Chapter 26
The java.lang.reflect Package

26.4 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 class InvocationTargetException extends Exception {
    // Public Constructors
            public InvocationTargetException(Throwable target);
            public InvocationTargetException(Throwable target, String s);
    // Protected Constructor
            protected InvocationTargetException();
    // Public Instance Methods
            public Throwable getTargetException();



Thrown By:

Constructor.newInstance(), Method.invoke()

Previous Home Next
java.lang.reflect.Field (JDK 1.1) Book Index java.lang.reflect.Member (JDK 1.1)

Java in a Nutshell Java Language Reference Java AWT Java Fundamental Classes Exploring Java