类 NonTransientDataAccessException
- java.lang.Object
- java.lang.Throwable
- java.lang.Exception
- java.lang.RuntimeException
- org.springframework.core.NestedRuntimeException
- org.springframework.dao.DataAccessException
- org.springframework.dao.NonTransientDataAccessException
- 所有已实现的接口:
Serializable
- 直接已知子类:
CleanupFailureDataAccessException
,DataIntegrityViolationException
,DataRetrievalFailureException
,DataSourceLookupFailureException
,InvalidDataAccessApiUsageException
,InvalidDataAccessResourceUsageException
,NonTransientDataAccessResourceException
,PermissionDeniedDataAccessException
,UncategorizedDataAccessException
public abstract class NonTransientDataAccessException extends DataAccessException
Root of the hierarchy of data access exceptions that are considered non-transient - where a retry of the same operation would fail unless the cause of the Exception is corrected.- 从以下版本开始:
- 2.5
- 作者:
- Thomas Risberg
- 另请参阅:
SQLNonTransientException
, 序列化表格
构造器概要
构造器 构造器 说明 NonTransientDataAccessException(String msg)
Constructor for NonTransientDataAccessException.NonTransientDataAccessException(String msg, Throwable cause)
Constructor for NonTransientDataAccessException.
方法概要
从类继承的方法 org.springframework.core.NestedRuntimeException
contains, getMessage, getMostSpecificCause, getRootCause
构造器详细资料
NonTransientDataAccessException
public NonTransientDataAccessException(String msg)
Constructor for NonTransientDataAccessException.- 参数:
msg
- the detail message
NonTransientDataAccessException
public NonTransientDataAccessException(String msg, Throwable cause)
Constructor for NonTransientDataAccessException.- 参数:
msg
- the detail messagecause
- the root cause (usually from using a underlying data access API such as JDBC)