public class InputMismatchException extends NoSuchElementException
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, toString
public 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.