KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > java > util > InputMismatchException


1 /*
2  * @(#)InputMismatchException.java 1.3 03/12/19
3  *
4  * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

7
8 package java.util;
9
10 /**
11  * Thrown by a <code>Scanner</code> to indicate that the token
12  * retrieved does not match the pattern for the expected type, or
13  * that the token is out of range for the expected type.
14  *
15  * @author unascribed
16  * @version 1.3 12/19/03
17  * @see java.util.Scanner
18  * @since 1.5
19  */

20 public
21 class InputMismatchException extends NoSuchElementException JavaDoc {
22     /**
23      * Constructs a <code>InputMismatchException</code> with <tt>null</tt>
24      * as its error message string.
25      */

26     public InputMismatchException() {
27     super();
28     }
29
30     /**
31      * Constructs a <code>InputMismatchException</code>, saving a reference
32      * to the error message string <tt>s</tt> for later retrieval by the
33      * <tt>getMessage</tt> method.
34      *
35      * @param s the detail message.
36      */

37     public InputMismatchException(String JavaDoc s) {
38     super(s);
39     }
40 }
41
Popular Tags