public class ObjectOptimisticLockingFailureException extends OptimisticLockingFailureException
| Constructor and Description |
|---|
ObjectOptimisticLockingFailureException(Class<?> persistentClass,
Object identifier)
Create a new ObjectOptimisticLockingFailureException for the given object,
with the default "optimistic locking failed" message.
|
ObjectOptimisticLockingFailureException(Class<?> persistentClass,
Object identifier,
String msg,
Throwable cause)
Create a new ObjectOptimisticLockingFailureException for the given object,
with the given explicit message.
|
ObjectOptimisticLockingFailureException(Class<?> persistentClass,
Object identifier,
Throwable cause)
Create a new ObjectOptimisticLockingFailureException for the given object,
with the default "optimistic locking failed" message.
|
ObjectOptimisticLockingFailureException(String persistentClassName,
Object identifier)
Create a new ObjectOptimisticLockingFailureException for the given object,
with the default "optimistic locking failed" message.
|
ObjectOptimisticLockingFailureException(String persistentClassName,
Object identifier,
String msg,
Throwable cause)
Create a new ObjectOptimisticLockingFailureException for the given object,
with the given explicit message.
|
ObjectOptimisticLockingFailureException(String persistentClassName,
Object identifier,
Throwable cause)
Create a new ObjectOptimisticLockingFailureException for the given object,
with the default "optimistic locking failed" message.
|
ObjectOptimisticLockingFailureException(String msg,
Throwable cause)
Create a general ObjectOptimisticLockingFailureException with the given message,
without any information on the affected object.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
getIdentifier()
Return the identifier of the object for which the locking failed.
|
Class<?> |
getPersistentClass()
Return the persistent class of the object for which the locking failed.
|
String |
getPersistentClassName()
Return the name of the persistent class of the object for which the locking failed.
|
contains, getMessage, getMostSpecificCause, getRootCauseaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic ObjectOptimisticLockingFailureException(String msg, Throwable cause)
msg - the detail messagecause - the source exceptionpublic ObjectOptimisticLockingFailureException(Class<?> persistentClass, Object identifier)
persistentClass - the persistent classidentifier - the ID of the object for which the locking failedpublic ObjectOptimisticLockingFailureException(Class<?> persistentClass, Object identifier, @Nullable Throwable cause)
persistentClass - the persistent classidentifier - the ID of the object for which the locking failedcause - the source exceptionpublic ObjectOptimisticLockingFailureException(Class<?> persistentClass, Object identifier, String msg, @Nullable Throwable cause)
persistentClass - the persistent classidentifier - the ID of the object for which the locking failedmsg - the detail messagecause - the source exceptionpublic ObjectOptimisticLockingFailureException(String persistentClassName, Object identifier)
persistentClassName - the name of the persistent classidentifier - the ID of the object for which the locking failedpublic ObjectOptimisticLockingFailureException(String persistentClassName, Object identifier, @Nullable Throwable cause)
persistentClassName - the name of the persistent classidentifier - the ID of the object for which the locking failedcause - the source exceptionpublic ObjectOptimisticLockingFailureException(String persistentClassName, Object identifier, String msg, @Nullable Throwable cause)
persistentClassName - the name of the persistent classidentifier - the ID of the object for which the locking failedmsg - the detail messagecause - the source exception@Nullable public Class<?> getPersistentClass()
@Nullable public String getPersistentClassName()