org.springframework.dao
Class NonTransientDataAccessException

java.lang.Object
  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.NonTransientDataAccessException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
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.

Since:
2.5
Author:
Thomas Risberg
See Also:
SQLNonTransientException, Serialized Form

Constructor Summary
NonTransientDataAccessException(java.lang.String msg)
          Constructor for NonTransientDataAccessException.
NonTransientDataAccessException(java.lang.String msg, java.lang.Throwable cause)
          Constructor for NonTransientDataAccessException.
 
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

NonTransientDataAccessException

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

Parameters:
msg - the detail message

NonTransientDataAccessException

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

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