Most visited

Recently visited

Added in API level 1

NoSuchElementException

public class NoSuchElementException
extends RuntimeException

java.lang.Object
    java.lang.Throwable
      java.lang.Exception
        java.lang.RuntimeException
          java.util.NoSuchElementException
Known Direct Subclasses


由抛出 nextElement一个的方法 Enumeration以指示存在枚举中没有更多的元素。

也可以看看:

摘要(Summary)

Public constructors

NoSuchElementException()

null作为错误消息字符串构造一个 NoSuchElementException

NoSuchElementException(String s)

构造一个 NoSuchElementException ,保存对错误消息字符串 s的引用,供以后通过 getMessage方法检索。

继承方法(Inherited methods)

From class java.lang.Throwable
From class java.lang.Object

Public constructors

NoSuchElementException

Added in API level 1
NoSuchElementException ()

null作为其错误消息字符串构造一个 NoSuchElementException

NoSuchElementException

Added in API level 1
NoSuchElementException (String s)

构造一个 NoSuchElementException ,保存对错误消息字符串 s的引用,供以后由 getMessage方法检索。

参数(Parameters)
s String: the detail message.

Hooray!