Subversion Repositories WebE

Rev

View as "text/plain" | Blame | Last modification | View Log | RSS feed

1
//$Id: EntityNotFoundException.java 11282 2007-03-14 22:05:59Z epbernard $
package javax.persistence;

/**
 * Thrown by the persistence provider when an entity reference obtained by
 * EntityManager.getReference(Class,Object)  is accessed but the entity does not exist.
 * Also thrown when EntityManager.refresh(Object) is called and the object no longer exists
 * in the database. The current transaction, if one is active, will be marked for rollback.
 *
 * @author Gavin King
 */

public class EntityNotFoundException extends PersistenceException {
        /**
         * Constructs a new EntityNotFoundException exception with null as its detail message.
         */

        public EntityNotFoundException() {
                super();
        }

        /**
         * Constructs a new EntityNotFoundException exception with the specified detail message.
         *
         * @param message the detail message
         */

        public EntityNotFoundException(String message) {
                super( message );
        }

}