summaryrefslogtreecommitdiff
path: root/java
diff options
context:
space:
mode:
authorAndrew John Hughes <gnu_andrew@member.fsf.org>2006-06-07 20:15:16 +0000
committerAndrew John Hughes <gnu_andrew@member.fsf.org>2006-06-07 20:15:16 +0000
commit8866098153eb6710c218cafffda382b48d5e9faa (patch)
tree943667aa7ba945f0e1a0379c3bb02c4cea0051ff /java
parent041d060d6120d713a52d1587dd0daf0bfc3bb042 (diff)
downloadclasspath-8866098153eb6710c218cafffda382b48d5e9faa.tar.gz
2006-06-07 Andrew John Hughes <gnu_andrew@member.fsf.org>
* java/util/InputMismatchException.java: Documented.
Diffstat (limited to 'java')
-rw-r--r--java/util/InputMismatchException.java25
1 files changed, 23 insertions, 2 deletions
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);