javax.ejb
Class DuplicateKeyException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by javax.ejb.CreateException
              extended by javax.ejb.DuplicateKeyException
All Implemented Interfaces:
java.io.Serializable

public class DuplicateKeyException
extends CreateException

The DuplicateKeyException exception is thrown if an entity EJB object cannot be created because an object with the same key already exists. This exception is thrown by the create methods defined in an entity Bean's home interface.

Author:
Florent Benoit
See Also:
EJB 3.0 specification, Serialized Form

Constructor Summary
DuplicateKeyException()
          Default constructor : builds an exception with an empty message.
DuplicateKeyException(java.lang.String message)
          Build an exception with the given message.
 
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

DuplicateKeyException

public DuplicateKeyException()
Default constructor : builds an exception with an empty message.


DuplicateKeyException

public DuplicateKeyException(java.lang.String message)
Build an exception with the given message.

Parameters:
message - the given message to use.


Copyright © 2008. All Rights Reserved.