public class OptimisticLockException extends PersistenceException
| Constructor and Description |
|---|
OptimisticLockException()
Constructs a new
OptimisticLockException exception with
null as its detail message. |
OptimisticLockException(java.lang.Object entity)
Constructs a new
OptimisticLockException exception with the
specified entity. |
OptimisticLockException(java.lang.String message)
Constructs a new
OptimisticLockException exception with the
specified detail message. |
OptimisticLockException(java.lang.String message,
java.lang.Throwable cause)
Constructs a new
OptimisticLockException exception with the
specified detail message and cause. |
OptimisticLockException(java.lang.String message,
java.lang.Throwable cause,
java.lang.Object entity)
Constructs a new
OptimisticLockException exception with the
specified detail message, cause, and entity. |
OptimisticLockException(java.lang.Throwable cause)
Constructs a new
OptimisticLockException exception with the
specified cause. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
getEntity()
Returns the entity that caused this exception.
|
public OptimisticLockException()
OptimisticLockException exception with
null as its detail message.public OptimisticLockException(java.lang.String message)
OptimisticLockException exception with the
specified detail message.message - the detail message.public OptimisticLockException(java.lang.String message,
java.lang.Throwable cause)
OptimisticLockException exception with the
specified detail message and cause.message - the detail message.cause - the cause.public OptimisticLockException(java.lang.Throwable cause)
OptimisticLockException exception with the
specified cause.cause - the cause.public OptimisticLockException(java.lang.Object entity)
OptimisticLockException exception with the
specified entity.entity - the entity.public OptimisticLockException(java.lang.String message,
java.lang.Throwable cause,
java.lang.Object entity)
OptimisticLockException exception with the
specified detail message, cause, and entity.message - the detail message.cause - the cause.entity - the entity.