UndeclaredThrowableExceptionpublic class UndeclaredThrowableException extends RuntimeException This class provides a wrapper for an undeclared, checked exception thrown by
an InvocationHandler. |
Fields Summary |
---|
private static final long | serialVersionUID | private Throwable | undeclaredThrowable |
Constructors Summary |
---|
public UndeclaredThrowableException(Throwable exception)Constructs a new {@code UndeclaredThrowableException} instance with the
undeclared, checked exception that occurred.
super();
this.undeclaredThrowable = exception;
initCause(exception);
| public UndeclaredThrowableException(Throwable exception, String detailMessage)Constructs a new {@code UndeclaredThrowableException} instance with the
undeclared, checked exception that occurred and a message.
super(detailMessage);
this.undeclaredThrowable = exception;
initCause(exception);
|
Methods Summary |
---|
public java.lang.Throwable | getCause()Returns the undeclared, checked exception that occurred, which may be
{@code null}.
return undeclaredThrowable;
| public java.lang.Throwable | getUndeclaredThrowable()Returns the undeclared, checked exception that occurred, which may be
{@code null}.
return undeclaredThrowable;
|
|