public class InputMismatchException extends NoSuchElementException
Scanner抛出,表示
Scanner到的令牌与预期类型的模式不匹配,或令牌超出预期类型的范围。
Scanner , Serialized Form
| Constructor and Description |
|---|
InputMismatchException()
构造
InputMismatchException与
null作为其错误消息字符串。
|
InputMismatchException(String s)
构造一个
InputMismatchException ,保存对错误消息字符串
s的引用以供以后通过
getMessage方法
检索 。
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic InputMismatchException()
InputMismatchException与
null作为其错误消息字符串。
public InputMismatchException(String s)
InputMismatchException ,保存对错误消息字符串
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.