30 |
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3 |
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3 |
31 |
* "The Java Language Specification", ISBN 0-201-63451-1 |
* "The Java Language Specification", ISBN 0-201-63451-1 |
32 |
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com. |
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com. |
|
* Status: Believed complete and correct. |
|
33 |
*/ |
*/ |
34 |
|
|
35 |
/** |
/** |
36 |
* Exception thrown when an attempt is made to access an element that does not |
* Exception thrown when an attempt is made to access an element that does not |
37 |
* exist. This exception is thrown by the Enumeration, Iterator and ListIterator |
* exist. This exception is thrown by the Enumeration, Iterator and |
38 |
* classes if the nextElement, next or previous method goes beyond the end of |
* ListIterator classes if the nextElement, next or previous method goes |
39 |
* the list of elements that are being accessed. |
* beyond the end of the list of elements that are being accessed. It is also |
40 |
|
* thrown by Vector and Stack when attempting to access the first or last |
41 |
|
* element of an empty collection. |
42 |
* |
* |
43 |
* @author Warren Levy <warrenl@cygnus.com> |
* @author Warren Levy <warrenl@cygnus.com> |
44 |
* @date September 2, 1998. |
* @author Eric Blake <ebb9@email.byu.edu> |
45 |
|
* @see Enumeration |
46 |
|
* @see Iterator |
47 |
|
* @see ListIterator |
48 |
|
* @see Enumeration#nextElement() |
49 |
|
* @see Iterator#next() |
50 |
|
* @see ListIterator#previous() |
51 |
|
* @since 1.0 |
52 |
|
* @status updated to 1.4 |
53 |
*/ |
*/ |
54 |
public class NoSuchElementException extends RuntimeException |
public class NoSuchElementException extends RuntimeException |
55 |
{ |
{ |
56 |
|
/** |
57 |
|
* Compatible with JDK 1.0. |
58 |
|
*/ |
59 |
private static final long serialVersionUID = 6769829250639411880L; |
private static final long serialVersionUID = 6769829250639411880L; |
60 |
|
|
61 |
/** |
/** |
63 |
*/ |
*/ |
64 |
public NoSuchElementException() |
public NoSuchElementException() |
65 |
{ |
{ |
|
super(); |
|
66 |
} |
} |
67 |
|
|
68 |
/** |
/** |