InputMismatchExceptionpublic class InputMismatchException extends NoSuchElementException implements SerializableAn {@code 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. |
Fields Summary |
---|
static final long | serialVersionUID |
Constructors Summary |
---|
public InputMismatchException()Constructs a new {@code InputMismatchException} with the current stack
trace filled in.
super();
| public InputMismatchException(String msg)Constructs a new {@code InputMismatchException} with the stack trace
filled in and {@code msg} as its error message.
super(msg);
|
|