站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JDK 5 Documentation v1.1.8, Java 2 SDK 英文文档

JDK 5 Documentation v1.1.8, Java 2 SDK 英文文档

Contents | Prev | Next Java Core Reflection


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
Copyright © 1996, 1997 Sun Microsystems, Inc. All rights reserved.