Class LockingStrategyException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
OptimisticEntityLockException, PessimisticEntityLockException

public abstract class LockingStrategyException extends HibernateException
Represents an error trying to apply a LockingStrategy to an entity
See Also:
  • Constructor Details

    • LockingStrategyException

      public LockingStrategyException(Object entity, String message)
      Constructs a LockingStrategyException
      Parameters:
      entity - The entity we were trying to lock
      message - Message explaining the condition
    • LockingStrategyException

      public LockingStrategyException(Object entity, String message, Throwable cause)
      Constructs a LockingStrategyException
      Parameters:
      entity - The entity we were trying to lock
      message - Message explaining the condition
      cause - The underlying cause
  • Method Details

    • getEntity

      public Object getEntity()