1. /*
  2. * @(#)NoSuchElementException.java 1.18 00/02/02
  3. *
  4. * Copyright 1994-2000 Sun Microsystems, Inc. All Rights Reserved.
  5. *
  6. * This software is the proprietary information of Sun Microsystems, Inc.
  7. * Use is subject to license terms.
  8. *
  9. */
  10. package java.util;
  11. /**
  12. * Thrown by the <code>nextElement</code> method of an
  13. * <code>Enumeration</code> to indicate that there are no more
  14. * elements in the enumeration.
  15. *
  16. * @author unascribed
  17. * @version 1.18, 02/02/00
  18. * @see java.util.Enumeration
  19. * @see java.util.Enumeration#nextElement()
  20. * @since JDK1.0
  21. */
  22. public
  23. class NoSuchElementException extends RuntimeException {
  24. /**
  25. * Constructs a <code>NoSuchElementException</code> with <tt>null</tt>
  26. * as its error message string.
  27. */
  28. public NoSuchElementException() {
  29. super();
  30. }
  31. /**
  32. * Constructs a <code>NoSuchElementException</code>, saving a reference
  33. * to the error message string <tt>s</tt> for later retrieval by the
  34. * <tt>getMessage</tt> method.
  35. *
  36. * @param s the detail message.
  37. */
  38. public NoSuchElementException(String s) {
  39. super(s);
  40. }
  41. }