public class OptimisticLockingFailureException extends ConcurrencyFailureException
This exception will be thrown either by O/R mapping tools or by custom DAO implementations. Optimistic locking failure is typically not detected by the database itself.
PessimisticLockingFailureException,
Serialized Form| Constructor and Description |
|---|
OptimisticLockingFailureException(java.lang.String msg)
Constructor for OptimisticLockingFailureException.
|
OptimisticLockingFailureException(java.lang.String msg,
java.lang.Throwable cause)
Constructor for OptimisticLockingFailureException.
|
contains, getMessage, getMostSpecificCause, getRootCausepublic OptimisticLockingFailureException(java.lang.String msg)
msg - the detail messagepublic OptimisticLockingFailureException(java.lang.String msg,
@Nullable
java.lang.Throwable cause)
msg - the detail messagecause - the root cause from the data access API in use