|
Berkeley DB version 4.2.52 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sleepycat.bdb.util.ExceptionUnwrapper
Unwraps nested exceptions by calling the ExceptionWrapper.getDetail()
method for exceptions that implement the
ExceptionWrapper
interface. Does not currently support the Java 1.4
Throwable.getDetail()
method.
Constructor Summary | |
ExceptionUnwrapper()
|
Method Summary | |
static Exception |
unwrap(Exception e)
Unwraps an Exception and returns the underlying Exception, or throws an Error if the underlying Throwable is an Error. |
static Throwable |
unwrapAny(Throwable e)
Unwraps an Exception and returns the underlying Throwable. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ExceptionUnwrapper()
Method Detail |
public static Exception unwrap(Exception e)
e
- is the Exception to unwrap.
Error
- if the underlying Throwable is an Error.
IllegalArgumentException
- if the underlying Throwable is not an
Exception or an Error.public static Throwable unwrapAny(Throwable e)
e
- is the Exception to unwrap.
|
Berkeley DB version 4.2.52 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |