1. /*
  2. * Copyright 2002 Sun Microsystems, Inc. All rights reserved.
  3. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  4. */
  5. package javax.ejb;
  6. /**
  7. * The DuplicateKeyException exception is thrown if an entity EJB object
  8. * cannot be created because an object with the same key already exists.
  9. * This exception is thrown by the create methods defined in an entity
  10. * Bean's home interface.
  11. */
  12. public class DuplicateKeyException extends CreateException {
  13. /**
  14. * Constructs a DuplicateKeyException with no detail message.
  15. */
  16. public DuplicateKeyException() {
  17. }
  18. /**
  19. * Constructs a DuplicateKeyException with the specified
  20. * detail message.
  21. */
  22. public DuplicateKeyException(String message) {
  23. super(message);
  24. }
  25. }