java.lang.reflect
public class UndeclaredThrowableException extends RuntimeException
(Object, Method, Object[]) invoke
method of that instance's InvocationHandler attempts to throw an
exception that not declared by the throws clauses of all of the
interface methods that the proxy instance is implementing.
When thrown by Proxy, this class will always wrap a checked exception, never Error or RuntimeException, which are unchecked.
Since: 1.3
See Also: Proxy InvocationHandler
UNKNOWN: updated to 1.4
Constructor Summary | |
---|---|
UndeclaredThrowableException(Throwable cause)
Wraps the given checked exception into a RuntimeException, with no
detail message. initCause will fail
on this instance.
| |
UndeclaredThrowableException(Throwable cause, String message)
Wraps the given checked exception into a RuntimeException, with the
specified detail message. initCause will
fail on this instance.
|
Method Summary | |
---|---|
Throwable | getCause()
Returns the cause of this exception. |
Throwable | getUndeclaredThrowable()
Returns the cause of this exception. |
Parameters: cause the undeclared throwable that caused this exception, may be null
Parameters: cause the undeclared throwable that caused this exception, may be null message the message, may be null
Returns: the cause of this exception, may be null
Since: 1.4