类 RecoverableDataAccessException
- java.lang.Object
- java.lang.Throwable
- java.lang.Exception
- java.lang.RuntimeException
- org.springframework.core.NestedRuntimeException
- org.springframework.dao.DataAccessException
- org.springframework.dao.RecoverableDataAccessException
- 所有已实现的接口:
Serializable
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.- 从以下版本开始:
- 2.5
- 作者:
- Thomas Risberg
- 另请参阅:
SQLRecoverableException
, 序列化表格
构造器概要
构造器 构造器 说明 RecoverableDataAccessException(String msg)
Constructor for RecoverableDataAccessException.RecoverableDataAccessException(String msg, Throwable cause)
Constructor for RecoverableDataAccessException.
方法概要
从类继承的方法 org.springframework.core.NestedRuntimeException
contains, getMessage, getMostSpecificCause, getRootCause
构造器详细资料
RecoverableDataAccessException
public RecoverableDataAccessException(String msg)
Constructor for RecoverableDataAccessException.- 参数:
msg
- the detail message
RecoverableDataAccessException
public RecoverableDataAccessException(String msg, Throwable cause)
Constructor for RecoverableDataAccessException.- 参数:
msg
- the detail messagecause
- the root cause (usually from using a underlying data access API such as JDBC)