public class NoSuchElementException extends RuntimeException
Enumeration.nextElement() ,
Iterator.next() ,
Serialized Form
| Constructor and Description |
|---|
NoSuchElementException()
Constructs a
NoSuchElementException with
null as its error message string.
|
NoSuchElementException(String
Constructs a
NoSuchElementException, saving a reference to the error message string
s for later retrieval by the
getMessage method.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic NoSuchElementException()
NoSuchElementException with
null as its error message string.
public NoSuchElementException(Strings)
NoSuchElementException, saving a reference to the error message string
s for later retrieval by the
getMessage method.
s - the detail message.