summaryrefslogtreecommitdiffstats
path: root/libjava/java/net/MalformedURLException.java
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/java/net/MalformedURLException.java')
-rw-r--r--libjava/java/net/MalformedURLException.java71
1 files changed, 29 insertions, 42 deletions
diff --git a/libjava/java/net/MalformedURLException.java b/libjava/java/net/MalformedURLException.java
index a74992b09e3..9cfae9aa5e5 100644
--- a/libjava/java/net/MalformedURLException.java
+++ b/libjava/java/net/MalformedURLException.java
@@ -1,5 +1,5 @@
/* MalformedURLException.java -- A URL was not in a valid format
- Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
+ Copyright (C) 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -7,7 +7,7 @@ GNU Classpath is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
-
+
GNU Classpath is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
@@ -37,50 +37,37 @@ exception statement from your version. */
package java.net;
-/**
- * Written using on-line Java Platform 1.2 API Specification, as well
- * as "The Java Class Libraries", 2nd edition (Addison-Wesley, 1998).
- * Status: Believed complete and correct.
- */
+import java.io.IOException;
/**
- * This exception indicates that a URL passed to an object was not in a
- * valid format.
- *
- * @author Aaron M. Renn (arenn@urbanophile.com)
- * @author Warren Levy <warrenl@cygnus.com>
- * @date March 5, 1999.
- */
-public class MalformedURLException extends java.io.IOException
-{
-
-/*
- * Constructors
+ * This exception indicates that a URL passed to an object was not in a
+ * valid format.
+ *
+ * @author Aaron M. Renn <arenn@urbanophile.com>
+ * @author Warren Levy <warrenl@cygnus.com>
+ * @status updated to 1.4
*/
-
-/**
- * Initializes a new instance of <code>MalformedURLException</code> without
- * a descriptive error message.
- */
-public
-MalformedURLException()
+public class MalformedURLException extends IOException
{
- super();
-}
+ /**
+ * Compatible with JDK 1.0+.
+ */
+ private static final long serialVersionUID = -182787522200415866L;
-/*************************************************************************/
-
-/**
- * Initializes a new instance of <code>MalformedURLException</code> without
- * a descriptive error message.
- *
- * @param message A message describing the error that occurred.
- */
-public
-MalformedURLException(String message)
-{
- super(message);
-}
+ /**
+ * Create a new instance without a descriptive error message.
+ */
+ public MalformedURLException()
+ {
+ }
+ /**
+ * Create a new instance with a descriptive error message.
+ *
+ * @param message a message describing the error that occurred
+ */
+ public MalformedURLException(String message)
+ {
+ super(message);
+ }
} // class MalformedURLException
-
OpenPOWER on IntegriCloud