public class InputMismatchException extends NoSuchElementException implements Serializable
InputMismatchException is thrown by a scanner to indicate that the
next token does not match or is out of range for the type specified in the
pattern.Scanner,
RuntimeException,
Serialized Form| Constructor and Description |
|---|
InputMismatchException()
Constructs a new
InputMismatchException with the current stack
trace filled in. |
InputMismatchException(String msg)
Constructs a new
InputMismatchException with the stack trace
filled in and msg as its error message. |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic InputMismatchException()
InputMismatchException with the current stack
trace filled in.public InputMismatchException(String msg)
InputMismatchException with the stack trace
filled in and msg as its error message.msg - the specified error message.