| Contents | Prev | Next | Java Core Reflection |
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.
public InvocationTargetException(Throwable target)
Constructs an InvocationTargetException with the specified target exception. public InvocationTargetException(Throwable target, String detail)
Constructs an InvocationTargetException with the specified target exception and a detail message String describing the exception.
public Throwable getTargetException()
Returns the the underlying target exception wrapped by this InvocationTargetException.