Package org.hibernate.dialect.lock
Class OptimisticEntityLockException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
jakarta.persistence.PersistenceException
org.hibernate.HibernateException
org.hibernate.dialect.lock.LockingStrategyException
org.hibernate.dialect.lock.OptimisticEntityLockException
- All Implemented Interfaces:
Serializable
Represents an error trying to apply an optimistic
LockingStrategy
to an entity- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionOptimisticEntityLockException
(Object entity, String message) Constructs a OptimisticEntityLockExceptionOptimisticEntityLockException
(Object entity, String message, Throwable cause) Constructs a OptimisticEntityLockException -
Method Summary
Methods inherited from class org.hibernate.dialect.lock.LockingStrategyException
getEntity
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
OptimisticEntityLockException
Constructs a OptimisticEntityLockException- Parameters:
entity
- The entity we were trying to lockmessage
- Message explaining the condition
-
OptimisticEntityLockException
Constructs a OptimisticEntityLockException- Parameters:
entity
- The entity we were trying to lockmessage
- Message explaining the conditioncause
- The underlying cause
-