com.sleepycat.util
public class ExceptionUnwrapper extends Object
Throwable.getCause() method.
| 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.
|
Parameters: e is the Exception to unwrap.
Returns: the underlying Exception.
Throws: Error if the underlying Throwable is an Error. IllegalArgumentException if the underlying Throwable is not an Exception or an Error.
Parameters: e is the Exception to unwrap.
Returns: the underlying Throwable.