Module java.base
Package java.util

Class InputMismatchException

java.lang.Object
All Implemented Interfaces:
Serializable

public class InputMismatchException extends NoSuchElementException
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.
Since:
1.5
See Also: