com.sleepycat.util
Class RuntimeExceptionWrapper
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.sleepycat.util.RuntimeExceptionWrapper
- All Implemented Interfaces:
- ExceptionWrapper, Serializable
public class RuntimeExceptionWrapper
- extends RuntimeException
- implements ExceptionWrapper
A RuntimeException that can contain nested exceptions.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
RuntimeExceptionWrapper
public RuntimeExceptionWrapper(Throwable e)
wrapIfNeeded
public static RuntimeException wrapIfNeeded(Throwable e)
- Wraps the given exception if it is not a
RuntimeException
.
- Parameters:
e
- any exception.
- Returns:
e
if it is a RuntimeException
, otherwise a
RuntimeExceptionWrapper
for e
.
getDetail
public Throwable getDetail()
- Deprecated. replaced by
Throwable.getCause()
.
- Description copied from interface:
ExceptionWrapper
- Returns the nested exception or null if none is present.
- Specified by:
getDetail
in interface ExceptionWrapper
- Returns:
- the nested exception or null if none is present.
Copyright (c) 1996, 2013 Oracle and/or its affiliates. All rights reserved.