java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
jakarta.data.exceptions.DataException
jakarta.data.exceptions.OptimisticLockingFailureException
- All Implemented Interfaces:
Serializable
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 Summary
ConstructorDescriptionOptimisticLockingFailureException
(String message) Constructs a new OptimisticLockingFailureException exception with the specified detail message.OptimisticLockingFailureException
(String message, Throwable cause) Constructs a new OptimisticLockingFailureException exception with the specified detail message.Constructs a new OptimisticLockingFailureException exception with the specified cause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
OptimisticLockingFailureException
Constructs a new OptimisticLockingFailureException exception with the specified detail message.- Parameters:
message
- the detail message.
-
OptimisticLockingFailureException
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
Constructs a new OptimisticLockingFailureException exception with the specified cause.- Parameters:
cause
- the cause.
-