public class NoSuchElementException extends RuntimeException
Enumeration.nextElement() ,
Iterator.next() ,
Serialized Form
| Constructor and Description |
|---|
NoSuchElementException()
构造一个
NoSuchElementException与
null作为其错误消息字符串。
|
NoSuchElementException(String s)
构造一个
NoSuchElementException ,保存对错误消息字符串
s的引用,供
getMessage方法稍后检索。
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic NoSuchElementException()
NoSuchElementException与
null作为其错误消息字符串。
public NoSuchElementException(String s)
NoSuchElementException ,保存对错误消息字符串
s的引用以供
getMessage方法稍后检索。
s - 详细信息。
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.