| java.lang.Object | |||||
| ↳ | java.lang.Throwable | ||||
| ↳ | java.lang.Exception | ||||
| ↳ | java.lang.RuntimeException | ||||
| ↳ | java.util.NoSuchElementException | ||||
| ↳ | java.util.InputMismatchException | ||||
An
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.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
Constructs a new
InputMismatchException
with the current stack
trace filled in.
|
||||||||||
|
|
Constructs a new
InputMismatchException
with the stack trace
filled in and
msg
as its error message.
|
||||||||||
|
[Expand]
Inherited Methods
|
|||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Throwable
|
|||||||||||||||||||||||||||||||||||||
From class
java.lang.Object
|
|||||||||||||||||||||||||||||||||||||
Constructs a new
InputMismatchException
with the current stack
trace filled in.
Constructs a new
InputMismatchException
with the stack trace
filled in and
msg
as its error message.
| msg | the specified error message. |
|---|