| java.lang.Object com.sleepycat.util.ExceptionUnwrapper
ExceptionUnwrapper | public class ExceptionUnwrapper (Code) | | 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 |
Method Summary | |
public static Exception | unwrap(Exception e) 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. | public static Throwable | unwrapAny(Throwable e) Unwraps an Exception and returns the underlying Throwable.
Parameters: e - is the Exception to unwrap. |
unwrap | public static Exception unwrap(Exception e)(Code) | | 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. the underlying Exception. throws: Error - if the underlying Throwable is an Error. throws: IllegalArgumentException - if the underlying Throwable is not anException or an Error. |
unwrapAny | public static Throwable unwrapAny(Throwable e)(Code) | | Unwraps an Exception and returns the underlying Throwable.
Parameters: e - is the Exception to unwrap. the underlying Throwable. |
|
|