Class RecoverableDataAccessException

  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.springframework.core.NestedRuntimeException
                  extended by org.springframework.dao.DataAccessException
                      extended by org.springframework.dao.RecoverableDataAccessException
All Implemented Interfaces:

public class RecoverableDataAccessException
extends DataAccessException

Data access exception thrown when a previously failed operation might be able to succeed if the application performs some recovery steps and retries the entire transaction or in the case of a distributed transaction, the transaction branch. At a minimum, the recovery operation must include closing the current connection and getting a new connection.

Thomas Risberg
See Also:
SQLRecoverableException, Serialized Form

Constructor Summary
RecoverableDataAccessException(java.lang.String msg)
          Constructor for RecoverableDataAccessException.
RecoverableDataAccessException(java.lang.String msg, java.lang.Throwable cause)
          Constructor for RecoverableDataAccessException.
Method Summary
Methods inherited from class org.springframework.core.NestedRuntimeException
contains, getMessage, getMostSpecificCause, getRootCause
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail


public RecoverableDataAccessException(java.lang.String msg)
Constructor for RecoverableDataAccessException.

msg - the detail message


public RecoverableDataAccessException(java.lang.String msg,
                                      java.lang.Throwable cause)
Constructor for RecoverableDataAccessException.

msg - the detail message
cause - the root cause (usually from using a underlying data access API such as JDBC)