1   /*
2    * %W% %E%
3    *
4    * Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved.
5    * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6    */
7   
8   package java.util;
9   
10  /**
11   * Thrown by the <code>nextElement</code> method of an 
12   * <code>Enumeration</code> to indicate that there are no more 
13   * elements in the enumeration. 
14   *
15   * @author  unascribed
16   * @version %I%, %G%
17   * @see     java.util.Enumeration
18   * @see     java.util.Enumeration#nextElement()
19   * @since   JDK1.0
20   */
21  public
22  class NoSuchElementException extends RuntimeException {
23      /**
24       * Constructs a <code>NoSuchElementException</code> with <tt>null</tt> 
25       * as its error message string.
26       */
27      public NoSuchElementException() {
28      super();
29      }
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  }
42