is new.
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.util.NoSuchElementException
java.util.InputMismatchException
public class InputMismatchException
Thrown by a Scanner to indicate that the token retrieved does not match the pattern for the expected type, or that the token is out of range for the expected type.
| Constructor Summary | |
|---|---|
|
InputMismatchException
() Constructs
an
|
|
|
InputMismatchException
(
String
Constructs
an
|
|
| Method Summary |
|---|
| Methods inherited from class java.lang. Throwable |
|---|
| fillInStackTrace , getCause , getLocalizedMessage , getMessage , getStackTrace , initCause , printStackTrace , printStackTrace , printStackTrace , setStackTrace , toString |
| Methods inherited from class java.lang. Object |
|---|
| clone , equals , finalize , getClass , hashCode , notify , notifyAll , wait , wait , wait |
| Constructor Detail |
|---|
public InputMismatchException()
an
public InputMismatchException(String s)
an