home *** CD-ROM | disk | FTP | other *** search
Java Source | 1998-03-20 | 1.4 KB | 62 lines |
- /*
- * @(#)InvocationTargetException.java 1.5 98/03/18
- *
- * Copyright 1996, 1997 by Sun Microsystems, Inc.,
- * 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
- * All rights reserved.
- *
- * This software is the confidential and proprietary information
- * of Sun Microsystems, Inc. ("Confidential Information"). You
- * shall not disclose such Confidential Information and shall use
- * it only in accordance with the terms of the license agreement
- * you entered into with Sun.
- */
-
- package java.lang.reflect;
-
- /**
- * InvocationTargetException is a checked exception that wraps
- * an exception thrown by an invoked method or constructor.
- *
- * @see Method
- * @see Constructor
- *
- */
- public
- class InvocationTargetException extends Exception {
-
- private Throwable target;
-
- /*
- *
- */
- protected InvocationTargetException() {
- super();
- }
-
- /**
- * Constructs a InvocationTargetException with a target exception.
- */
- public InvocationTargetException(Throwable target) {
- super();
- this.target = target;
- }
-
- /**
- * Constructs a InvocationTargetException with a target exception
- * and a detail message.
- */
- public InvocationTargetException(Throwable target, String s) {
- super(s);
- this.target = target;
- }
-
- /**
- * Get the thrown target exception.
- */
- public Throwable getTargetException() {
- return target;
- }
-
- }
-