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 NoSuchEntityException exception is thrown by an Entity Bean
  8. * instance to its container to report that the invoked business method
  9. * or callback method could not be completed because of the underlying
  10. * entity was removed from the database.
  11. *
  12. * <p>This exception may be thrown by the bean class methods that implement
  13. * the business methods defined in the bean's component interface; and by
  14. * the ejbLoad and ejbStore methods.
  15. */
  16. public class NoSuchEntityException extends EJBException {
  17. /**
  18. * @serial
  19. */
  20. /**
  21. * Constructs a NoSuchEntityException with no detail message.
  22. */
  23. public NoSuchEntityException() {
  24. }
  25. /**
  26. * Constructs a NoSuchEntityException with the specified
  27. * detailed message.
  28. */
  29. public NoSuchEntityException(String message) {
  30. super(message);
  31. }
  32. /**
  33. * Constructs a NoSuchEntityException that embeds the originally
  34. * thrown exception.
  35. */
  36. public NoSuchEntityException(Exception ex) {
  37. super(ex);
  38. }
  39. }