javax.persistence
Class EntityExistsException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by javax.persistence.PersistenceException
                  extended by javax.persistence.EntityExistsException
All Implemented Interfaces:
java.io.Serializable

public class EntityExistsException
extends PersistenceException

Thrown by the persistence provider when EntityManager.persist(Object) is called and the entity already exists. The current transaction, if one is active will be marked for rollback.

See Also:
Serialized Form

Constructor Summary
EntityExistsException()
           
EntityExistsException(java.lang.String message)
           
EntityExistsException(java.lang.String message, java.lang.Throwable cause)
           
EntityExistsException(java.lang.Throwable cause)
           
 
Method Summary
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EntityExistsException

public EntityExistsException()

EntityExistsException

public EntityExistsException(java.lang.String message)

EntityExistsException

public EntityExistsException(java.lang.String message,
                             java.lang.Throwable cause)

EntityExistsException

public EntityExistsException(java.lang.Throwable cause)