Class CannotAcquireLockException

All Implemented Interfaces:
Serializable

public class CannotAcquireLockException extends PessimisticLockingFailureException
Exception thrown on failure to acquire a lock during an update, for example during a "select for update" statement.

Consider handling the general PessimisticLockingFailureException instead, semantically including a wider range of locking-related failures.

Author:
Rod Johnson
See Also:
  • Constructor Details

    • CannotAcquireLockException

      public CannotAcquireLockException(String msg)
      Constructor for CannotAcquireLockException.
      Parameters:
      msg - the detail message
    • CannotAcquireLockException

      public CannotAcquireLockException(String msg, Throwable cause)
      Constructor for CannotAcquireLockException.
      Parameters:
      msg - the detail message
      cause - the root cause from the data access API in use