public class PersistenceException extends 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 and Description |
---|
PersistenceException()
Constructs a new
PersistenceException exception
with null as its detail message. |
PersistenceException(String message)
Constructs a new
PersistenceException exception
with the specified detail message. |
PersistenceException(String message,
Throwable cause)
Constructs a new
PersistenceException exception
with the specified detail message and cause. |
PersistenceException(Throwable cause)
Constructs a new
PersistenceException exception
with the specified cause. |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public PersistenceException()
PersistenceException
exception
with null
as its detail message.public PersistenceException(String message)
PersistenceException
exception
with the specified detail message.message
- the detail message.public PersistenceException(String message, Throwable cause)
PersistenceException
exception
with the specified detail message and cause.message
- the detail message.cause
- the cause.public PersistenceException(Throwable cause)
PersistenceException
exception
with the specified cause.cause
- the cause.Copyright © 2019 JBoss by Red Hat. All rights reserved.