aicas logoJamaica 3.2 release 62

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 acts a wrapper if a call to invoke() throws a checked exception that was not declared by the method definition.

Since:
1.3
See Also:
Serialized Form

Constructor Summary
UndeclaredThrowableException(Throwable undeclaredThrowable)
          Wrap the given checked exception.
UndeclaredThrowableException(Throwable undeclaredThrowable, String message)
          Wrap the given checked exception.
 
Method Summary
 Throwable getCause()
          Get the exception that the cause of this exception.
 Throwable getUndeclaredThrowable()
          Get the exception that the cause of this exception.
 
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 undeclaredThrowable)
Wrap the given checked exception.

Parameters:
undeclaredThrowable - The exception to warp.

UndeclaredThrowableException

public UndeclaredThrowableException(Throwable undeclaredThrowable,
                                    String message)
Wrap the given checked exception.

Parameters:
undeclaredThrowable - The exception to warp.
message - The message to go with this exception.
Method Detail

getUndeclaredThrowable

public Throwable getUndeclaredThrowable()
Get the exception that the cause of this exception.

Returns:
The checked exception that caused this exception.

getCause

public Throwable getCause()
Get the exception that the cause of this exception.

Overrides:
getCause in class Throwable
Returns:
The checked exception that caused this exception.
Since:
1.4

aicas logoJamaica 3.2 release 62

aicas GmbH, Karlsruhe - Germany    www.aicas.com
Copyright 2001-2008 aicas GmbH. All Rights Reserved.