Subversion Repositories WebE

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
33 PointedEar 1
//$Id: EntityNotFoundException.java 11282 2007-03-14 22:05:59Z epbernard $
2
package javax.persistence;
3
 
4
/**
5
 * Thrown by the persistence provider when an entity reference obtained by
6
 * EntityManager.getReference(Class,Object)  is accessed but the entity does not exist.
7
 * Also thrown when EntityManager.refresh(Object) is called and the object no longer exists
8
 * in the database. The current transaction, if one is active, will be marked for rollback.
9
 *
10
 * @author Gavin King
11
 */
12
public class EntityNotFoundException extends PersistenceException {
13
        /**
14
         * Constructs a new EntityNotFoundException exception with null as its detail message.
15
         */
16
        public EntityNotFoundException() {
17
                super();
18
        }
19
 
20
        /**
21
         * Constructs a new EntityNotFoundException exception with the specified detail message.
22
         *
23
         * @param message the detail message
24
         */
25
        public EntityNotFoundException(String message) {
26
                super( message );
27
        }
28
 
29
}