javax.persistence.PersistenceException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jpa-api Show documentation
Show all versions of jpa-api Show documentation
Hibernate developmental JSR 317 (Java Persistence API 2.0) contracts. Used to
allow incremental implementation of features on the way to full JPA 2.0 support.
The newest version!
// $Id: PersistenceException.java 16130 2009-03-10 14:28:07Z hardy.ferentschik $
// EJB3 Specification Copyright 2004-2009 Sun Microsystems, Inc.
package javax.persistence;
/**
* Thrown by the persistence provider when a problem occurs. All instances of PersistenceException
* except for instances of NoResultException and NonUniqueResultException will cause the current
* transaction, if one is active, to be marked for rollback.
*
* @author Bill Burke
*/
public class PersistenceException extends RuntimeException {
/**
* Constructs a new PersistenceException exception with null as its detail message.
*/
public PersistenceException() {
}
/**
* Constructs a new PersistenceException exception with the specified detail message.
*
* @param message the detail message
*/
public PersistenceException(String message) {
super( message );
}
/**
* Constructs a new PersistenceException exception with the specified detail message and cause
*
* @param message the detail message
* @param cause the cause
*/
public PersistenceException(String message, Throwable cause) {
super( message, cause );
}
/**
* Constructs a new PersistenceException exception with the specified cause
*
* @param cause the cause
*/
public PersistenceException(Throwable cause) {
super( cause );
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy