|
Préférences
Moteurs de recherche
|
|||||||||||||||
JavaTM 2 Platform Std. Ed. v1.6.0
java.lang.reflect
|
Constructor Summary | |
---|---|
UndeclaredThrowableException(Throwable undeclaredThrowable)
Constructs an UndeclaredThrowableException with the
specified Throwable . |
|
UndeclaredThrowableException(Throwable undeclaredThrowable,
String s)
Constructs an UndeclaredThrowableException with the
specified Throwable and a detail message. |
Method Summary | |
---|---|
Throwable |
getCause()
Returns the cause of this exception (the Throwable
instance wrapped in this UndeclaredThrowableException ,
which may be null). |
Throwable |
getUndeclaredThrowable()
Returns the Throwable instance wrapped in this
UndeclaredThrowableException , which may be null. |
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 |
---|
public UndeclaredThrowableException(Throwable undeclaredThrowable)
UndeclaredThrowableException
with the
specified Throwable
.
undeclaredThrowable
- the undeclared checked exception
that was thrownpublic UndeclaredThrowableException(Throwable undeclaredThrowable, String s)
UndeclaredThrowableException
with the
specified Throwable
and a detail message.
undeclaredThrowable
- the undeclared checked exception
that was throwns
- the detail messageMethod Detail |
---|
public Throwable getUndeclaredThrowable()
Throwable
instance wrapped in this
UndeclaredThrowableException
, which may be null.
This method predates the general-purpose exception chaining facility.
The Throwable.getCause()
method is now the preferred means of
obtaining this information.
public Throwable getCause()
Throwable
instance wrapped in this UndeclaredThrowableException
,
which may be null).