Berkeley DB
version 5.2.28

Class RuntimeExceptionWrapper

  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by 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

Constructor Summary
RuntimeExceptionWrapper(Throwable e)
Method Summary
 Throwable getDetail()
          Deprecated. replaced by Throwable.getCause().
static RuntimeException wrapIfNeeded(Throwable e)
          Wraps the given exception if it is not a RuntimeException.
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.sleepycat.util.ExceptionWrapper

Constructor Detail


public RuntimeExceptionWrapper(Throwable e)
Method Detail


public static RuntimeException wrapIfNeeded(Throwable e)
Wraps the given exception if it is not a RuntimeException.

e - any exception.
e if it is a RuntimeException, otherwise a RuntimeExceptionWrapper for e.


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
the nested exception or null if none is present.

Berkeley DB
version 5.2.28

Copyright (c) 1996, 2011 Oracle and/or its affiliates. All rights reserved.