|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 the pattern the specified type.
Scanner
,
Serialized FormConstructor Summary | |
InputMismatchException()
Constructs a InputMismatchException with no error message |
|
InputMismatchException(java.lang.String msg)
Constructs a InputMismatchException with msg as its error message |
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 |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public InputMismatchException()
public InputMismatchException(java.lang.String msg)
msg
- The specified error message
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |