java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.util.NoSuchElementException
- 所有已实现的接口:
-
Serializable
- 直接已知的子类:
-
InputMismatchException
由各种访问器方法抛出,表示请求的元素不存在。
- 自:
- 1.0
- 参见:
-
Constructor Summary
ConstructorsConstructorDescription用指定的错误消息字符串null构造一个NoSuchElementException。构造一个NoSuchElementException,保存错误消息字符串s的引用,以便稍后通过getMessage方法检索。NoSuchElementException(String s, Throwable cause) 用指定的详细消息和原因构造一个NoSuchElementException。NoSuchElementException(Throwable cause) 用指定的原因构造一个NoSuchElementException。 -
Method Summary
Methods declared in class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
NoSuchElementException
public NoSuchElementException()用null作为其错误消息字符串构造一个NoSuchElementException。 -
NoSuchElementException
用指定的详细消息和原因构造一个NoSuchElementException。- 参数:
-
s- 详细消息,或null -
cause- 原因(保存供稍后通过Throwable.getCause()方法检索),或null - 自:
- 15
-
NoSuchElementException
用指定的原因构造一个NoSuchElementException。详细消息设置为(cause == null ? null : cause.toString())(通常包含cause的类和详细消息)。- 参数:
-
cause- 原因(保存供稍后通过Throwable.getCause()方法检索) - 自:
- 15
-
NoSuchElementException
构造一个NoSuchElementException,保存错误消息字符串s的引用,以便稍后通过getMessage方法检索。- 参数:
-
s- 详细消息。
-