diff options
author | Andrew John Hughes <gnu_andrew@member.fsf.org> | 2006-06-07 20:15:16 +0000 |
---|---|---|
committer | Andrew John Hughes <gnu_andrew@member.fsf.org> | 2006-06-07 20:15:16 +0000 |
commit | 8866098153eb6710c218cafffda382b48d5e9faa (patch) | |
tree | 943667aa7ba945f0e1a0379c3bb02c4cea0051ff | |
parent | 041d060d6120d713a52d1587dd0daf0bfc3bb042 (diff) | |
download | classpath-8866098153eb6710c218cafffda382b48d5e9faa.tar.gz |
2006-06-07 Andrew John Hughes <gnu_andrew@member.fsf.org>
* java/util/InputMismatchException.java:
Documented.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | java/util/InputMismatchException.java | 25 |
2 files changed, 28 insertions, 2 deletions
@@ -1,3 +1,8 @@ +2006-06-07 Andrew John Hughes <gnu_andrew@member.fsf.org> + + * java/util/InputMismatchException.java: + Documented. + 2006-06-04 Andrew John Hughes <gnu_andrew@member.fsf.org> * java/util/Formattable.java, diff --git a/java/util/InputMismatchException.java b/java/util/InputMismatchException.java index 2a1c8eca7..39326c33e 100644 --- a/java/util/InputMismatchException.java +++ b/java/util/InputMismatchException.java @@ -38,13 +38,34 @@ exception statement from your version. */ package java.util; -/** @since 1.5 */ -public class InputMismatchException extends NoSuchElementException +/** + * Thrown when a {@link Scanner} instance encounters a mismatch + * between the input data and the pattern it is trying to match it + * against. This could be because the input data represents an + * out-of-range value for the type the pattern represents, or simply + * because the data does not fit that particular type. + * + * @author Tom Tromey (tromey@redhat.com) + * @author Andrew John Hughes (gnu_andrew@member.fsf.org) + * @since 1.5 + */ +public class InputMismatchException + extends NoSuchElementException { + /** + * Constructs a new <code>InputMismatchException</code> + * with a <code>null</code> message. + */ public InputMismatchException() { } + /** + * Constructs a new <code>InputMismatchException</code> + * with the supplied error message. + * + * @param s the error message to report back to the user. + */ public InputMismatchException(String s) { super(s); |