API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.lang.reflect. InvocationTargetException View Source
Author(s)
Since
Version
Serial
Hierarchy
 Object
      Throwable
          Exception
              InvocationTargetException
Implements
Subclasses
Description
public exception InvocationTargetException
  InvocationTargetException is a checked exception that wraps an exception thrown by an invoked method or constructor.
See also:    Method Constructor
Constructors
protected InvocationTargetException ()
Constructs an InvocationTargetException with null as the target exception.
public InvocationTargetException (Throwable target)
  Constructs a InvocationTargetException with a target exception.
public InvocationTargetException (Throwable target, String s)
  Constructs a InvocationTargetException with a target exception and a detail message.
Methods
Hide/Show inherited methods
publicsynchronizednative Throwable fillInStackTrace () [Inherited From Throwable]
  Fills in the execution stack trace.
public Throwable getCause () [Overrides Throwable]
  Returns the cause of this exception (the thrown target exception, which may be null).
public String getLocalizedMessage () [Inherited From Throwable]
  Creates a localized description of this throwable.
public String getMessage () [Inherited From Throwable]
  Returns the detail message string of this throwable.
public StackTraceElement getStackTrace () [Inherited From Throwable]
  Provides programmatic access to the stack trace information printed by Throwable.printStackTrace().
public Throwable getTargetException ()
  Get the thrown target exception.
publicsynchronized Throwable initCause (Throwable cause) [Inherited From Throwable]
  Initializes the cause of this throwable to the specified value.
public void printStackTrace () [Inherited From Throwable]
  Prints this throwable and its backtrace to the standard error stream.
public void printStackTrace (PrintStream s) [Inherited From Throwable]
  Prints this throwable and its backtrace to the specified print stream.
public void printStackTrace (PrintWriter s) [Inherited From Throwable]
  Prints this throwable and its backtrace to the specified print writer.
public void setStackTrace (StackTraceElement stackTrace) [Inherited From Throwable]
  Sets the stack trace elements that will be returned by Throwable.getStackTrace() and printed by Throwable.printStackTrace() and related methods.
public String toString () [Inherited From Throwable]
  Returns a short description of this throwable.
Fields
Hide/Show inherited fields
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar