FileDocCategorySizeDatePackage
UndeclaredThrowableException.javaAPI DocAndroid 1.5 API2866Wed May 06 22:41:04 BST 2009java.lang.reflect

UndeclaredThrowableException

public class UndeclaredThrowableException extends RuntimeException
This class provides a wrapper for an undeclared, checked exception thrown by an InvocationHandler.
see
java.lang.reflect.InvocationHandler#invoke
since
Android 1.0

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.

param
exception the undeclared, checked exception that occurred
since
Android 1.0


                                              
       
        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.

param
detailMessage the detail message for the exception
param
exception the undeclared, checked exception that occurred
since
Android 1.0

        super(detailMessage);
        this.undeclaredThrowable = exception;
        initCause(exception);
    
Methods Summary
public java.lang.ThrowablegetCause()
Returns the undeclared, checked exception that occurred, which may be {@code null}.

return
the undeclared, checked exception that occurred
since
Android 1.0

        return undeclaredThrowable;
    
public java.lang.ThrowablegetUndeclaredThrowable()
Returns the undeclared, checked exception that occurred, which may be {@code null}.

return
the undeclared, checked exception that occurred
since
Android 1.0

        return undeclaredThrowable;