public class InvocationTargetException extends Exception
Modifier | Constructor and Description |
---|---|
protected |
InvocationTargetException() |
|
InvocationTargetException(Throwable target) |
|
InvocationTargetException(Throwable target,
String detail) |
Modifier and Type | Method and Description |
---|---|
Throwable |
getTargetException() |
void |
printStackTrace()
Writes a printable representation of this
Throwable 's stack trace
to the System.err stream. |
void |
printStackTrace(PrintStream ps)
Writes a printable representation of this
Throwable 's stack trace
to the specified print stream. |
void |
printStackTrace(PrintWriter pw)
Writes a printable representation of this
Throwable 's stack trace
to the specified print writer. |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace, toString
protected InvocationTargetException()
public InvocationTargetException(Throwable target)
public Throwable getTargetException()
public void printStackTrace()
Throwable
Throwable
's stack trace
to the System.err
stream.printStackTrace
in class Throwable
public void printStackTrace(PrintStream ps)
Throwable
Throwable
's stack trace
to the specified print stream. If the Throwable
contains a
cause
, the method will be invoked recursively for
the nested Throwable
.printStackTrace
in class Throwable
ps
- the stream to write the stack trace on.public void printStackTrace(PrintWriter pw)
Throwable
Throwable
's stack trace
to the specified print writer. If the Throwable
contains a
cause
, the method will be invoked recursively for the
nested Throwable
.printStackTrace
in class Throwable
pw
- the writer to write the stack trace on.