JavaTM 2 Platform
Standard Ed. 6

java.util
类 NoSuchElementException

java.lang.Object
  继承者 java.lang.Throwable
      继承者 java.lang.Exception
          继承者 java.lang.RuntimeException
              继承者 java.util.NoSuchElementException
所有已实现的接口:
Serializable
直接已知子类:
InputMismatchException

public class NoSuchElementException
extends RuntimeException

EnumerationnextElement 方法抛出,表明枚举中没有更多的元素。

从以下版本开始:
JDK1.0
另请参见:
Enumeration, Enumeration.nextElement(), 序列化表格

构造方法摘要
NoSuchElementException()
          构造一个 NoSuchElementException,用 null 作为其错误消息字符串。
NoSuchElementException(String s)
          构造一个 NoSuchElementException,保存对错误消息字符串 s 的引用,以便将来通过 getMessage 方法进行获取。
 
方法摘要
 
从类 java.lang.Throwable 继承的方法
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

构造方法详细信息

NoSuchElementException

public NoSuchElementException()
构造一个 NoSuchElementException,用 null 作为其错误消息字符串。


NoSuchElementException

public NoSuchElementException(String s)
构造一个 NoSuchElementException,保存对错误消息字符串 s 的引用,以便将来通过 getMessage 方法进行获取。

参数:
s - 详细消息。

JavaTM 2 Platform
Standard Ed. 6

提交错误或意见

版权所有 2008 Sun Microsystems, Inc. 保留所有权利。请遵守GNU General Public License, version 2 only