java.io.Serializable
EntityExistsException
, EntityNotFoundException
, LockTimeoutException
, NonUniqueResultException
, NoResultException
, OptimisticLockException
, PessimisticLockException
, QueryTimeoutException
, RollbackException
, TransactionRequiredException
public class PersistenceException
extends java.lang.RuntimeException
PersistenceException
except for instances of
NoResultException
, NonUniqueResultException
,
LockTimeoutException
, and QueryTimeoutException
will cause
the current transaction, if one is active and the persistence context has
been joined to it, to be marked for rollback.Constructor | Description |
---|---|
PersistenceException() |
Constructs a new
PersistenceException exception
with null as its detail message. |
PersistenceException(java.lang.String message) |
Constructs a new
PersistenceException exception
with the specified detail message. |
PersistenceException(java.lang.String message,
java.lang.Throwable cause) |
Constructs a new
PersistenceException exception
with the specified detail message and cause. |
PersistenceException(java.lang.Throwable cause) |
Constructs a new
PersistenceException exception
with the specified cause. |
public PersistenceException()
PersistenceException
exception
with null
as its detail message.public PersistenceException(java.lang.String message)
PersistenceException
exception
with the specified detail message.message
- the detail message.public PersistenceException(java.lang.String message, java.lang.Throwable cause)
PersistenceException
exception
with the specified detail message and cause.message
- the detail message.cause
- the cause.public PersistenceException(java.lang.Throwable cause)
PersistenceException
exception
with the specified cause.cause
- the cause.Copyright © 2018. All rights reserved.