Android
java.util
public class

java.util.InputMismatchException

java.lang.Object
java.lang.Throwable Serializable
java.lang.Exception
java.lang.RuntimeException
java.util.NoSuchElementException
java.util.InputMismatchException Serializable

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
Methods inherited from class java.lang.Throwable
Methods inherited from class java.lang.Object

Details

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
Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:56