English | Site Directory

Android - An Open Handset Alliance Project

java.lang.reflect
public class

java.lang.reflect.UndeclaredThrowableException

java.lang.Object
java.lang.Throwable Serializable
java.lang.Exception
java.lang.RuntimeException
java.lang.reflect.UndeclaredThrowableException

This class provides a wrapper for an unexpected exception thrown by an InvocationHandler

Summary

Public Constructors

          UndeclaredThrowableException(Throwable exception)
Constructs a new instance of this class with its walkback and target exception filled in.
          UndeclaredThrowableException(Throwable exception, String detailMessage)
Constructs a new instance of this class with its walkback, target exception and message filled in.

Public Methods

        Throwable  getCause()
Answers the cause of this Throwable, or null if there is no cause.
        Throwable  getUndeclaredThrowable()
Answers the exception which caused the receiver to be thrown.
Methods inherited from class java.lang.Throwable
Methods inherited from class java.lang.Object

Details

Public Constructors

public UndeclaredThrowableException(Throwable exception)

Constructs a new instance of this class with its walkback and target exception filled in.

Parameters

exception The exception which occurred while loading the class.

public UndeclaredThrowableException(Throwable exception, String detailMessage)

Constructs a new instance of this class with its walkback, target exception and message filled in.

Parameters

exception Throwable The exception which occurred while loading the class.
detailMessage String The detail message for the exception.

Public Methods

public Throwable getCause()

Answers the cause of this Throwable, or null if there is no cause.

Returns

  • Throwable The receiver's cause.

public Throwable getUndeclaredThrowable()

Answers the exception which caused the receiver to be thrown.
Build m5-rc15g - 14 May 2008 12:50