Subversion Repositories WebE

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
33 PointedEar 1
//$Id: $
2
package javax.persistence;
3
 
4
/**
5
 * Thrown by the persistence provider when EntityManager.persist(Object) is called and the
6
 * entity already exists. The current transaction, if one is active, will be marked for rollback.
7
 *
8
 * @author Emmanuel Bernard
9
 */
10
public class EntityExistsException extends PersistenceException {
11
        /**
12
         * Constructs a new EntityExistsException exception with null as its detail message.
13
         */
14
        public EntityExistsException() {
15
                super();
16
        }
17
 
18
        /**
19
         * Constructs a new EntityExistsException exception with the specified cause.
20
         *
21
         * @param cause the cause
22
         */
23
        public EntityExistsException(Throwable cause) {
24
                super( cause );
25
        }
26
 
27
        /**
28
         * Constructs a new EntityExistsException exception with the specified detail message.
29
         *
30
         * @param message the detail message.
31
         */
32
        public EntityExistsException(String message) {
33
                super( message );
34
        }
35
 
36
        /**
37
         * Constructs a new EntityExistsException exception with the specified detail message and cause.
38
         *
39
         * @param message the detail message.
40
         * @param cause the cause.
41
         */
42
        public EntityExistsException(String message, Throwable cause) {
43
                super( message, cause );
44
        }
45
}