当前位置 类层次 (JDK) 所有类 (JDK) 所有域和方法 (JDK)

类 java.util.NoSuchElementException

java.lang.Object
   |
   +----java.lang.Throwable
           |
           +----java.lang.Exception
                   |
                   +----java.lang.RuntimeException
                           |
                           +----java.util.NoSuchElementException

public class NoSuchElementException
extends RuntimeException

该异常由一个 EnumerationnextElement 方法抛出,以指示枚举中不再有元素。

来自:
JDK1.0
参见:
Enumeration, nextElement

构造子索引

NoSuchElementException()
构造一个没有详细信息的 NoSuchElementException
NoSuchElementException(String)
构造一个有指定的详细信息的 NoSuchElementException

构造子

NoSuchElementException
 public NoSuchElementException()
构造一个没有详细信息的 NoSuchElementException

NoSuchElementException
 public NoSuchElementException(String s)
构造一个有指定的详细信息的 NoSuchElementException

参数:
s - 详细信息。

当前位置 类层次 (JDK) 所有类 (JDK) 所有域和方法 (JDK)