Save This Page
Home » apache-tomcat-6.0.26-src » javax » persistence » [javadoc | source]
    1   /* $Id: PersistenceException.java 11282 2007-03-14 22:05:59Z epbernard $
    2    * JBoss, Inc
    3    *
    4    * Distributable under LGPL license.
    5    * See terms of license at gnu.org.
    6    */
    7   package javax.persistence;
    8   
    9   /**
   10    * Thrown by the persistence provider when a problem occurs. All instances of PersistenceException
   11    * except for instances of NoResultException and NonUniqueResultException will cause the current
   12    * transaction, if one is active, to be marked for rollback.
   13    *
   14    * @author <a href="mailto:bill@jboss.org">Bill Burke</a>
   15    */
   16   public class PersistenceException extends RuntimeException {
   17   	/**
   18   	 * Constructs a new PersistenceException exception with null as its detail message.
   19   	 */
   20   	public PersistenceException() {
   21   	}
   22   
   23   	/**
   24   	 * Constructs a new PersistenceException exception with the specified detail message.
   25   	 *
   26   	 * @param message the detail message
   27   	 */
   28   	public PersistenceException(String message) {
   29   		super( message );
   30   	}
   31   
   32   	/**
   33   	 * Constructs a new PersistenceException exception with the specified detail message and cause
   34   	 *
   35   	 * @param message the detail message
   36   	 * @param cause the cause
   37   	 */
   38   	public PersistenceException(String message, Throwable cause) {
   39   		super( message, cause );
   40   	}
   41   
   42   	/**
   43   	 * Constructs a new PersistenceException exception with the specified cause
   44   	 *
   45   	 * @param cause the cause
   46   	 */
   47   	public PersistenceException(Throwable cause) {
   48   		super( cause );
   49   	}
   50   }

Save This Page
Home » apache-tomcat-6.0.26-src » javax » persistence » [javadoc | source]