jtulach@120
|
1 |
/*
|
jtulach@120
|
2 |
* Copyright (c) 1994, 2008, Oracle and/or its affiliates. All rights reserved.
|
jtulach@120
|
3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
jtulach@120
|
4 |
*
|
jtulach@120
|
5 |
* This code is free software; you can redistribute it and/or modify it
|
jtulach@120
|
6 |
* under the terms of the GNU General Public License version 2 only, as
|
jtulach@120
|
7 |
* published by the Free Software Foundation. Oracle designates this
|
jtulach@120
|
8 |
* particular file as subject to the "Classpath" exception as provided
|
jtulach@120
|
9 |
* by Oracle in the LICENSE file that accompanied this code.
|
jtulach@120
|
10 |
*
|
jtulach@120
|
11 |
* This code is distributed in the hope that it will be useful, but WITHOUT
|
jtulach@120
|
12 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
jtulach@120
|
13 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
jtulach@120
|
14 |
* version 2 for more details (a copy is included in the LICENSE file that
|
jtulach@120
|
15 |
* accompanied this code).
|
jtulach@120
|
16 |
*
|
jtulach@120
|
17 |
* You should have received a copy of the GNU General Public License version
|
jtulach@120
|
18 |
* 2 along with this work; if not, write to the Free Software Foundation,
|
jtulach@120
|
19 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
jtulach@120
|
20 |
*
|
jtulach@120
|
21 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
jtulach@120
|
22 |
* or visit www.oracle.com if you need additional information or have any
|
jtulach@120
|
23 |
* questions.
|
jtulach@120
|
24 |
*/
|
jtulach@120
|
25 |
|
jtulach@120
|
26 |
package java.util;
|
jtulach@120
|
27 |
|
jtulach@120
|
28 |
/**
|
jtulach@120
|
29 |
* Thrown by the <code>nextElement</code> method of an
|
jtulach@120
|
30 |
* <code>Enumeration</code> to indicate that there are no more
|
jtulach@120
|
31 |
* elements in the enumeration.
|
jtulach@120
|
32 |
*
|
jtulach@120
|
33 |
* @author unascribed
|
jtulach@120
|
34 |
* @see java.util.Enumeration
|
jtulach@120
|
35 |
* @see java.util.Enumeration#nextElement()
|
jtulach@120
|
36 |
* @since JDK1.0
|
jtulach@120
|
37 |
*/
|
jtulach@120
|
38 |
public
|
jtulach@120
|
39 |
class NoSuchElementException extends RuntimeException {
|
jtulach@120
|
40 |
private static final long serialVersionUID = 6769829250639411880L;
|
jtulach@120
|
41 |
|
jtulach@120
|
42 |
/**
|
jtulach@120
|
43 |
* Constructs a <code>NoSuchElementException</code> with <tt>null</tt>
|
jtulach@120
|
44 |
* as its error message string.
|
jtulach@120
|
45 |
*/
|
jtulach@120
|
46 |
public NoSuchElementException() {
|
jtulach@120
|
47 |
super();
|
jtulach@120
|
48 |
}
|
jtulach@120
|
49 |
|
jtulach@120
|
50 |
/**
|
jtulach@120
|
51 |
* Constructs a <code>NoSuchElementException</code>, saving a reference
|
jtulach@120
|
52 |
* to the error message string <tt>s</tt> for later retrieval by the
|
jtulach@120
|
53 |
* <tt>getMessage</tt> method.
|
jtulach@120
|
54 |
*
|
jtulach@120
|
55 |
* @param s the detail message.
|
jtulach@120
|
56 |
*/
|
jtulach@120
|
57 |
public NoSuchElementException(String s) {
|
jtulach@120
|
58 |
super(s);
|
jtulach@120
|
59 |
}
|
jtulach@120
|
60 |
}
|