Package org.hibernate.dialect.lock
Class LockingStrategyException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- javax.persistence.PersistenceException
-
- org.hibernate.HibernateException
-
- org.hibernate.dialect.lock.LockingStrategyException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
OptimisticEntityLockException
,PessimisticEntityLockException
public abstract class LockingStrategyException extends HibernateException
Represents an error trying to apply aLockingStrategy
to an entity- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LockingStrategyException(java.lang.Object entity, java.lang.String message)
Constructs a LockingStrategyExceptionLockingStrategyException(java.lang.Object entity, java.lang.String message, java.lang.Throwable cause)
Constructs a LockingStrategyException
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
getEntity()
-
-
-
Constructor Detail
-
LockingStrategyException
public LockingStrategyException(java.lang.Object entity, java.lang.String message)
Constructs a LockingStrategyException- Parameters:
entity
- The entity we were trying to lockmessage
- Message explaining the condition
-
LockingStrategyException
public LockingStrategyException(java.lang.Object entity, java.lang.String message, java.lang.Throwable cause)
Constructs a LockingStrategyException- Parameters:
entity
- The entity we were trying to lockmessage
- Message explaining the conditioncause
- The underlying cause
-
-