java.util.NoSuchElementExceptionNoSuchElementException is thrown to indicate that another element was 
requested from an Enumeration object that has no more elements to supply. See 
method nextElement of interface Enumeration (§21.1.2).
public classNoSuchElementExceptionextends RuntimeException { publicNoSuchElementException(); publicNoSuchElementException(String s); }
21.14.1    public 
NoSuchElementException()
This constructor initializes a newly created NoSuchElementException with 
null as its error message string.
21.14.2    public 
NoSuchElementException(String s)
This constructor initializes a newly created NoSuchElementException by saving 
a reference to the error message string s for later retrieval by the getMessage 
method (§20.22.3).
Contents | Prev | Next | Index
Java Language Specification (HTML generated by Suzette Pelouch on February 24, 1998)
Copyright © 1996 Sun Microsystems, Inc.
All rights reserved
Please send any comments or corrections to doug.kramer@sun.com