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 ObjectNotFoundException exception is thrown by a finder method to
  8. * indicate that the specified EJB object does not exist.
  9. *
  10. * <p> Only the finder methods that are declared to return a single EJB object
  11. * use this exception. This exception should not be thrown by finder methods
  12. * that return a collection of EJB objects (they should return an empty
  13. * collection instead).
  14. */
  15. public class ObjectNotFoundException extends FinderException {
  16. /**
  17. * Constructs an ObjectNotFoundException with no detail message.
  18. */
  19. public ObjectNotFoundException() {
  20. }
  21. /**
  22. * Constructs an ObjectNotFoundException with the specified
  23. * detail message.
  24. */
  25. public ObjectNotFoundException(String message) {
  26. super(message);
  27. }
  28. }