Package org.hibernate.dialect.lock
Class PessimisticEntityLockException
- 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.PessimisticEntityLockException
-
- All Implemented Interfaces:
Serializable
public class PessimisticEntityLockException extends LockingStrategyException
Represents an error trying to apply a pessimisticLockingStrategy
to an entity- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PessimisticEntityLockException(Object entity, String message, JDBCException cause)
Constructs a PessimisticEntityLockException
-
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 Detail
-
PessimisticEntityLockException
public PessimisticEntityLockException(Object entity, String message, JDBCException cause)
Constructs a PessimisticEntityLockException- Parameters:
entity
- The entity we were trying to lockmessage
- Message explaining the conditioncause
- The underlying cause
-
-