Packages  This Package  Prev  Next  Index  

§3.14 Class NoSuchElementException

public  class  java.util.NoSuchElementException
    extends  java.lang.RuntimeException  (I-§1.42)
{
        // Constructors
    public NoSuchElementException();	§3.14.1
    public NoSuchElementException(String  s);	§3.14.2
}
Thrown by the nextElement method (I-§3.11.2) of an Enumeration to indicate that there are no more elements in the enumeration.


Constructors

NoSuchElementException

public NoSuchElementException()
Constructs a NoSuchElementException with no detail message.

NoSuchElementException

public NoSuchElementException(String s)
Constructs a NoSuchElementException with the specified detail message.
Parameters:
s - the detail message


Packages  This Package  Prev  Next  Index
Java API Document (HTML generated by dkramer on April 22, 1996)
Copyright © 1996 Sun Microsystems, Inc. All rights reserved
Please send any comments or corrections to doug.kramer@sun.com