Name

NoSuchElementException

Synopsis

Signals that there are no elements in an object (such as a Vector) or that there are no more elements in an object (such as an Enumeration).

java.util.NoSuchElementException

Figure 16-46. java.util.NoSuchElementException

public class NoSuchElementException extends RuntimeException {
// Public Constructors
     public NoSuchElementException( );  
     public NoSuchElementException(String s);  
}

Subclasses

InputMismatchException

Get Java in a Nutshell, 5th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.