java.util
Class InputMismatchException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.util.NoSuchElementException
java.util.InputMismatchException
- All Implemented Interfaces:
- Serializable
public class InputMismatchException
- extends NoSuchElementException
- implements Serializable
An InputMismatchException is thrown by a scanner to indicate that the next
token does not match the pattern the specified type.
- See Also:
Scanner,
Serialized Form
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
serialVersionUID
static final long serialVersionUID
- See Also:
- Constant Field Values
InputMismatchException
public InputMismatchException()
- Constructs a InputMismatchException with no error message
InputMismatchException
public InputMismatchException(String msg)
- Constructs a InputMismatchException with msg as its error message
- Parameters:
msg - The specified error message
Please submit a feedback, bug or feature