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