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  PersistenceExceptionexception 
 withnullas its detail message. | 
| PersistenceException(String message)Constructs a new  PersistenceExceptionexception 
 with the specified detail message. | 
| PersistenceException(String message,
                    Throwable cause)Constructs a new  PersistenceExceptionexception 
 with the specified detail message and cause. | 
| PersistenceException(Throwable cause)Constructs a new  PersistenceExceptionexception 
 with the specified cause. | 
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic 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 © 1996-2015, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.