Build 1.0_r1(from source)

java.lang.reflect
Class UndeclaredThrowableException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by java.lang.reflect.UndeclaredThrowableException
All Implemented Interfaces:
Serializable

public class UndeclaredThrowableException
extends RuntimeException

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

See Also:
InvocationHandler.invoke(java.lang.Object, java.lang.reflect.Method, java.lang.Object[]), Serialized Form

Constructor Summary
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.
 
Method Summary
 Throwable getCause()
          Returns the cause of this Throwable, or null if there is no cause.
 Throwable getUndeclaredThrowable()
          Returns the exception which caused the receiver to be thrown.
 
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

UndeclaredThrowableException

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.

UndeclaredThrowableException

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

Parameters:
detailMessage - String The detail message for the exception.
exception - Throwable The exception which occurred while loading the class.
Method Detail

getUndeclaredThrowable

public Throwable getUndeclaredThrowable()
Returns the exception which caused the receiver to be thrown.


getCause

public Throwable getCause()
Returns the cause of this Throwable, or null if there is no cause.

Overrides:
getCause in class Throwable
Returns:
Throwable The receiver's cause.

Build 1.0_r1(from source)

Please submit a feedback, bug or feature