Build 1.0_r1(from source)

java.util
Class InputMismatchException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by java.util.NoSuchElementException
                  extended by 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

Field Summary
(package private) static long serialVersionUID
           
 
Constructor Summary
InputMismatchException()
          Constructs a InputMismatchException with no error message
InputMismatchException(String msg)
          Constructs a InputMismatchException with msg as its error message
 
Method Summary
 
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

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

Build 1.0_r1(from source)

Please submit a feedback, bug or feature