Name

NoSuchElementException

Synopsis

This exception is thrown to signal that an attempt has been made to access an element of a collection or an enumeration that does not exist. This class is the same as its J2SE equivalent, apart from its inability to be serialized.

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

Get J2ME in a Nutshell 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.