Class OptimisticLockingFailureException

All Implemented Interfaces:
Serializable

public class OptimisticLockingFailureException extends DataException
Indicates a failure that is due to inconsistent state between the entity and the database. For example, delete(entity) or deleteAll(entities) where the entity Id no longer exists in the database or the entity is versioned and the version no longer matches the version in the database.
See Also:
  • Constructor Details

    • OptimisticLockingFailureException

      public OptimisticLockingFailureException(String message)
      Constructs a new OptimisticLockingFailureException exception with the specified detail message.
      Parameters:
      message - the detail message.
    • OptimisticLockingFailureException

      public OptimisticLockingFailureException(String message, Throwable cause)
      Constructs a new OptimisticLockingFailureException exception with the specified detail message.
      Parameters:
      message - the detail message.
      cause - another exception or error that caused this exception. Null indicates that no other cause is specified.
    • OptimisticLockingFailureException

      public OptimisticLockingFailureException(Throwable cause)
      Constructs a new OptimisticLockingFailureException exception with the specified cause.
      Parameters:
      cause - the cause.