Top Description Constructors
org.springframework.dao

public Class PessimisticLockingFailureException

extends ConcurrencyFailureException
Class Inheritance
Known Direct Subclasses
org.springframework.dao.CannotAcquireLockException, org.springframework.dao.CannotSerializeTransactionException, org.springframework.dao.DeadlockLoserDataAccessException
Annotations
@SuppressWarnings:serial

Exception thrown on a pessimistic locking violation. Thrown by Spring's SQLException translation mechanism if a corresponding database error is encountered.

Serves as a superclass for more specific exceptions, e.g. CannotAcquireLockException. However, it is generally recommended to handle PessimisticLockingFailureException itself instead of relying on specific exception subclasses.

Author
Thomas Risberg
Since
1.2
See Also
OptimisticLockingFailureException

Constructor Summary

AccessConstructor and Description
public
PessimisticLockingFailureException(String
the detail message
msg
)

Constructor for PessimisticLockingFailureException.

public
PessimisticLockingFailureException(String
the detail message
msg
,
Throwable
the root cause from the data access API in use
cause
)

Constructor for PessimisticLockingFailureException.

Constructor Detail

PessimisticLockingFailureExceptionback to summary
public PessimisticLockingFailureException(String msg)

Constructor for PessimisticLockingFailureException.

Parameters
msg:String

the detail message

PessimisticLockingFailureExceptionback to summary
public PessimisticLockingFailureException(String msg, Throwable cause)

Constructor for PessimisticLockingFailureException.

Parameters
msg:String

the detail message

cause:Throwable

the root cause from the data access API in use