Package 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
A RuntimeException that can contain nested exceptions.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.static RuntimeExceptionWraps the given exception if it is not aRuntimeException.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.sleepycat.util.ExceptionWrapper
getCause
-
Constructor Details
-
RuntimeExceptionWrapper
-
-
Method Details
-
wrapIfNeeded
Wraps the given exception if it is not aRuntimeException.- Parameters:
e- any exception.- Returns:
eif it is aRuntimeException, otherwise aRuntimeExceptionWrapperfore.
-
getDetail
Deprecated.replaced byThrowable.getCause().Description copied from interface:ExceptionWrapperReturns the nested exception or null if none is present.- Specified by:
getDetailin interfaceExceptionWrapper- Returns:
- the nested exception or null if none is present.
-
Throwable.getCause().