|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.reflect.InvocationTargetException
public class InvocationTargetException
This class provides a wrapper for an exception thrown by a Method or Constructor invocation.
Method.invoke(java.lang.Object, java.lang.Object...),
Constructor.newInstance(java.lang.Object...),
Serialized Form| Constructor Summary | |
|---|---|
protected |
InvocationTargetException()
Constructs a new instance of this class with its walkback filled in. |
|
InvocationTargetException(Throwable exception)
Constructs a new instance of this class with its walkback and target exception filled in. |
|
InvocationTargetException(Throwable exception,
String detailMessage)
Constructs a new instance of this class with its walkback, target exception and message filled in. |
| Method Summary | |
|---|---|
Throwable |
getCause()
Returns the cause of this Throwable, or null if there is no cause. |
Throwable |
getTargetException()
Returns the exception which caused the receiver to be thrown. |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected InvocationTargetException()
public InvocationTargetException(Throwable exception)
exception - Throwable The exception which occurred while running the
Method or Constructor.
public InvocationTargetException(Throwable exception,
String detailMessage)
detailMessage - String The detail message for the exception.exception - Throwable The exception which occurred while running the
Method or Constructor.| Method Detail |
|---|
public Throwable getTargetException()
public Throwable getCause()
getCause in class Throwable
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||