加载中...
The Wayback Machine - https://sup1a9wrlpyh5li9ro.vcoronado.top/web/20090218034219/http://developer.android.com:80/reference/java/util/InputMismatchException.html
public class

InputMismatchException

extends NoSuchElementException
implements Serializable
java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.lang.RuntimeException
         ↳ java.util.NoSuchElementException
           ↳ java.util.InputMismatchException

Class Overview

An InputMismatchException is thrown by a scanner to indicate that the next token does not match the pattern the specified type.

See Also

Summary

Public Constructors
InputMismatchException()
Constructs a InputMismatchException with no error message
InputMismatchException(String msg)
Constructs a InputMismatchException with msg as its error message
[Expand]
Inherited Methods
From class java.lang.Throwable
From class java.lang.Object

Public Constructors

public InputMismatchException ()

Constructs a InputMismatchException with no error message

public InputMismatchException (String msg)

Constructs a InputMismatchException with msg as its error message

Parameters
msg The specified error message