java.lang.reflect
Class InvocationTargetException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--java.lang.reflect.InvocationTargetException
- public class InvocationTargetException
- extends java.lang.Exception
InvocationTargetException is a checked exception that wraps
an exception thrown by an invoked method or constructor.
CDLC AWT Support Building Block:
This class is subsetted to fit the CLDC space. Removed are Java 1.2 methods:
- printStackTrace()
- printStackTrace(PrintStream)
- printStackTrace(PrintWriter)
Constructor Summary |
protected |
InvocationTargetException()
Constructs an InvocationTargetException with
null as the target exception. |
|
InvocationTargetException(java.lang.Throwable target)
Constructs a InvocationTargetException with a target exception. |
|
InvocationTargetException(java.lang.Throwable target,
java.lang.String s)
Constructs a InvocationTargetException with a target exception
and a detail message. |
Methods inherited from class java.lang.Throwable |
getMessage, printStackTrace, toString |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
InvocationTargetException
protected InvocationTargetException()
- Constructs an
InvocationTargetException
with
null
as the target exception.
InvocationTargetException
public InvocationTargetException(java.lang.Throwable target)
- Constructs a InvocationTargetException with a target exception.
InvocationTargetException
public InvocationTargetException(java.lang.Throwable target,
java.lang.String s)
- Constructs a InvocationTargetException with a target exception
and a detail message.
getTargetException
public java.lang.Throwable getTargetException()
- Get the thrown target exception.