Main Page | Class Hierarchy | Data Structures | Directories | File List | Data Fields | Related Pages

com::sleepycat::util::ExceptionUnwrapper Class Reference


Static Public Member Functions

static Exception unwrap (Exception e)
static Throwable unwrapAny (Throwable e)

Detailed Description

Unwraps nested exceptions by calling the ExceptionWrapper#getCause() method for exceptions that implement the ExceptionWrapper interface. Does not currently support the Java 1.4 Throwable.getCause() method.

Author:
Mark Hayes

Definition at line 20 of file ExceptionUnwrapper.java.


Member Function Documentation

static Exception com::sleepycat::util::ExceptionUnwrapper::unwrap Exception  e  )  [inline, static]
 

Unwraps an Exception and returns the underlying Exception, or throws an Error if the underlying Throwable is an Error.

Parameters:
e is the Exception to unwrap.
Returns:
the underlying Exception.
Exceptions:
Error if the underlying Throwable is an Error.
IllegalArgumentException if the underlying Throwable is not an Exception or an Error.

Definition at line 35 of file ExceptionUnwrapper.java.

References unwrapAny().

static Throwable com::sleepycat::util::ExceptionUnwrapper::unwrapAny Throwable  e  )  [inline, static]
 

Unwraps an Exception and returns the underlying Throwable.

Parameters:
e is the Exception to unwrap.
Returns:
the underlying Throwable.

Definition at line 54 of file ExceptionUnwrapper.java.

Referenced by unwrap().


The documentation for this class was generated from the following file:
Generated on Sun Dec 25 12:15:02 2005 for Berkeley DB 4.4.16 by  doxygen 1.4.2