FileDocCategorySizeDatePackage
EntityExistsException.javaAPI DocGlassfish v2 API3433Fri May 04 22:34:06 BST 2007javax.persistence

EntityExistsException

public class EntityExistsException extends PersistenceException
Thrown by the persistence provider when {@link EntityManager#persist(Object) EntityManager.persist(Object)} is called and the entity already exists. The current transaction, if one is active, will be marked for rollback.
see
javax.persistence.EntityManager#persist(Object)
since
Java Persistence 1.0

Fields Summary
Constructors Summary
public EntityExistsException()
Constructs a new EntityExistsException exception with null as its detail message.

		super();
	
public EntityExistsException(String message)
Constructs a new EntityExistsException exception with the specified detail message.

param
message the detail message.

		super(message);
	
public EntityExistsException(String message, Throwable cause)
Constructs a new EntityExistsException exception with the specified detail message and cause.

param
message the detail message.
param
cause the cause.

		super(message, cause);
	
public EntityExistsException(Throwable cause)
Constructs a new EntityExistsException exception with the specified cause.

param
cause the cause.

		super(cause);
	
Methods Summary