Module io.ebean.api
Package io.ebean

Class AcquireLockException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
javax.persistence.PersistenceException
javax.persistence.PessimisticLockException
io.ebean.AcquireLockException
All Implemented Interfaces:
Serializable

public class AcquireLockException extends javax.persistence.PessimisticLockException
Thrown when failing to acquire a pessimistic lock.

Typically when "select for update nowait" or "select for update" is being used and the lock can not be obtained (as it is held by another transaction).

See Also:
  • Constructor Details

    • AcquireLockException

      public AcquireLockException(String message, Throwable cause)
      Create with a message and cause.