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(@Nullable String msg)
      Constructor for CannotAcquireLockException.
      Parameters:
      msg - the detail message
    • CannotAcquireLockException

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