public class PessimisticLockException extends PersistenceException
Constructor and Description |
---|
PessimisticLockException()
Constructs a new
PessimisticLockException exception
with null as its detail message. |
PessimisticLockException(Object entity)
Constructs a new
PessimisticLockException exception
with the specified entity. |
PessimisticLockException(String message)
Constructs a new
PessimisticLockException exception
with the specified detail message. |
PessimisticLockException(String message,
Throwable cause)
Constructs a new
PessimisticLockException exception
with the specified detail message and cause. |
PessimisticLockException(String message,
Throwable cause,
Object entity)
Constructs a new
PessimisticLockException exception
with the specified detail message, cause, and entity. |
PessimisticLockException(Throwable cause)
Constructs a new
PessimisticLockException exception
with the specified cause. |
Modifier and Type | Method and Description |
---|---|
Object |
getEntity()
Returns the entity that caused this exception.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public PessimisticLockException()
PessimisticLockException
exception
with null
as its detail message.public PessimisticLockException(String message)
PessimisticLockException
exception
with the specified detail message.message
- the detail message.public PessimisticLockException(String message, Throwable cause)
PessimisticLockException
exception
with the specified detail message and cause.message
- the detail message.cause
- the cause.public PessimisticLockException(Throwable cause)
PessimisticLockException
exception
with the specified cause.cause
- the cause.public PessimisticLockException(Object entity)
PessimisticLockException
exception
with the specified entity.entity
- the entity.public Object getEntity()
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.