|
|
|||||||||
| 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.RuntimeException
java.lang.reflect.UndeclaredThrowableException
public class UndeclaredThrowableException
This class acts a wrapper if a call to invoke() throws a checked exception that was not declared by the method definition.
| Constructor Summary | |
|---|---|
UndeclaredThrowableException(Throwable undeclaredThrowable)
Wrap the given checked exception. |
|
UndeclaredThrowableException(Throwable undeclaredThrowable,
String message)
Wrap the given checked exception. |
|
| Method Summary | |
|---|---|
Throwable |
getCause()
Get the exception that the cause of this exception. |
Throwable |
getUndeclaredThrowable()
Get the exception that the cause of this exception. |
| 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)
undeclaredThrowable - The exception to warp.
public UndeclaredThrowableException(Throwable undeclaredThrowable,
String message)
undeclaredThrowable - The exception to warp.message - The message to go with this exception.| Method Detail |
|---|
public Throwable getUndeclaredThrowable()
public Throwable getCause()
getCause in class Throwable
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||