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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AcquireLockException(String message, Throwable cause)
Create with a message and cause.
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
AcquireLockException
public AcquireLockException(String message, Throwable cause)
Create with a message and cause.
-
-