Contents | Prev | Next

The class java.lang.reflect.InvocationTargetException


package java.lang.reflect;
public class InvocationTargetException extends Exception
InvocationTargetException is a checked exception that wraps an exception thrown by an invoked method or constructor.

Constructors

InvocationTargetException

public InvocationTargetException(Throwable target)
Constructs an InvocationTargetException with the specified target exception.

InvocationTargetException

public InvocationTargetException(Throwable target, String detail)
Constructs an InvocationTargetException with the specified target exception and a detail message String describing the exception.

Methods

getTargetException

public Throwable getTargetException()
Returns the the underlying target exception wrapped by this InvocationTargetException.



Contents | Prev | Next
reflection-comments@worthy.eng.sun.com
Copyright © 1996 Sun Microsystems, Inc. All rights reserved.