java.util
Class NoSuchElementException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--java.lang.RuntimeException
|
+--java.util.NoSuchElementException
- All Implemented Interfaces:
- Serializable
- public class NoSuchElementException
- extends RuntimeException
Untamed: Thrown by the nextElement method of an
Enumeration to indicate that there are no more
elements in the enumeration.
- Since:
- JDK1.0
- Version:
- 1.19, 12/03/01
- Author:
- unascribed
- See Also:
java.util.Enumeration,
java.util.Enumeration#nextElement(),
Serialized Form
| Fields inherited from class java.lang.Throwable |
|
|
Constructor Summary |
NoSuchElementException()
Enabled: Constructs a NoSuchElementException with null
as its error message string. |
NoSuchElementException(String s)
Enabled: Constructs a NoSuchElementException, saving a reference
to the error message string s for later retrieval by the
getMessage method. |
| Methods inherited from class java.lang.Throwable |
backtrace, eStack, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, javaStack, leaf, printStackTrace, printStackTrace, printStackTrace, printThrowableOn, setStackTrace, toString, unwrap |
NoSuchElementException
public NoSuchElementException()
- Enabled: Constructs a
NoSuchElementException with null
as its error message string.
NoSuchElementException
public NoSuchElementException(String s)
- Enabled: Constructs a
NoSuchElementException, saving a reference
to the error message string s for later retrieval by the
getMessage method.
- Parameters:
s - the detail message.
comments?