1 |
/* MalformedURLException.java -- A URL was not in a valid format |
/* MalformedURLException.java -- A URL was not in a valid format |
2 |
Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc. |
Copyright (C) 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc. |
3 |
|
|
4 |
This file is part of GNU Classpath. |
This file is part of GNU Classpath. |
5 |
|
|
7 |
it under the terms of the GNU General Public License as published by |
it under the terms of the GNU General Public License as published by |
8 |
the Free Software Foundation; either version 2, or (at your option) |
the Free Software Foundation; either version 2, or (at your option) |
9 |
any later version. |
any later version. |
10 |
|
|
11 |
GNU Classpath is distributed in the hope that it will be useful, but |
GNU Classpath is distributed in the hope that it will be useful, but |
12 |
WITHOUT ANY WARRANTY; without even the implied warranty of |
WITHOUT ANY WARRANTY; without even the implied warranty of |
13 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
37 |
|
|
38 |
package java.net; |
package java.net; |
39 |
|
|
40 |
/** |
import java.io.IOException; |
|
* 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. |
|
|
*/ |
|
41 |
|
|
42 |
/** |
/** |
43 |
* This exception indicates that a URL passed to an object was not in a |
* This exception indicates that a URL passed to an object was not in a |
44 |
* valid format. |
* valid format. |
45 |
* |
* |
46 |
* @author Aaron M. Renn (arenn@urbanophile.com) |
* @author Aaron M. Renn <arenn@urbanophile.com> |
47 |
* @author Warren Levy <warrenl@cygnus.com> |
* @author Warren Levy <warrenl@cygnus.com> |
48 |
* @date March 5, 1999. |
* @status updated to 1.4 |
|
*/ |
|
|
public class MalformedURLException extends java.io.IOException |
|
|
{ |
|
|
|
|
|
/* |
|
|
* Constructors |
|
49 |
*/ |
*/ |
50 |
|
public class MalformedURLException extends IOException |
|
/** |
|
|
* Initializes a new instance of <code>MalformedURLException</code> without |
|
|
* a descriptive error message. |
|
|
*/ |
|
|
public |
|
|
MalformedURLException() |
|
51 |
{ |
{ |
52 |
super(); |
/** |
53 |
} |
* Compatible with JDK 1.0+. |
54 |
|
*/ |
55 |
/*************************************************************************/ |
private static final long serialVersionUID = -182787522200415866L; |
56 |
|
|
57 |
/** |
/** |
58 |
* Initializes a new instance of <code>MalformedURLException</code> without |
* Create a new instance without a descriptive error message. |
59 |
* a descriptive error message. |
*/ |
60 |
* |
public MalformedURLException() |
61 |
* @param message A message describing the error that occurred. |
{ |
62 |
*/ |
} |
63 |
public |
|
64 |
MalformedURLException(String message) |
/** |
65 |
{ |
* Create a new instance with a descriptive error message. |
66 |
super(message); |
* |
67 |
} |
* @param message a message describing the error that occurred |
68 |
|
*/ |
69 |
|
public MalformedURLException(String message) |
70 |
|
{ |
71 |
|
super(message); |
72 |
|
} |
73 |
} // class MalformedURLException |
} // class MalformedURLException |
|
|
|