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