java.util
Class NoSuchElementException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- java.util.NoSuchElementException
-
public class NoSuchElementException extends RuntimeException
ANoSuchElementException
is thrown when trying to retrieve an element past the end of an Enumeration, or the first or last element from an empty Vector.- See Also:
Enumeration
,RuntimeException
-
-
Constructor Summary
Constructors Constructor and Description NoSuchElementException()
Constructs a newNoSuchElementException
with the current stack trace filled in.NoSuchElementException(String detailMessage)
Constructs a newNoSuchElementException
with the current stack trace and message filled in.
-
Method Summary
-
Methods inherited from class java.lang.Throwable
fillInStackTrace, getMessage, getStackTrace, printStackTrace, printStackTrace, toString
-
-
-
-
Constructor Detail
-
NoSuchElementException
public NoSuchElementException()
Constructs a newNoSuchElementException
with the current stack trace filled in.
-
NoSuchElementException
public NoSuchElementException(String detailMessage)
Constructs a newNoSuchElementException
with the current stack trace and message filled in.- Parameters:
detailMessage
- the detail message for the exception.
-
-