- /*
- * Copyright 2002 Sun Microsystems, Inc. All rights reserved.
- * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
- */
- package javax.ejb;
-
- /**
- * 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.
- */
- public class DuplicateKeyException extends CreateException {
- /**
- * Constructs a DuplicateKeyException with no detail message.
- */
- public DuplicateKeyException() {
- }
-
- /**
- * Constructs a DuplicateKeyException with the specified
- * detail message.
- */
- public DuplicateKeyException(String message) {
- super(message);
- }
- }
-