diff options
Diffstat (limited to 'libjava/java/net')
-rw-r--r-- | libjava/java/net/BindException.java | 70 | ||||
-rw-r--r-- | libjava/java/net/ConnectException.java | 73 | ||||
-rw-r--r-- | libjava/java/net/MalformedURLException.java | 71 | ||||
-rw-r--r-- | libjava/java/net/NoRouteToHostException.java | 63 | ||||
-rw-r--r-- | libjava/java/net/ProtocolException.java | 75 | ||||
-rw-r--r-- | libjava/java/net/SocketException.java | 71 | ||||
-rw-r--r-- | libjava/java/net/UnknownHostException.java | 78 | ||||
-rw-r--r-- | libjava/java/net/UnknownServiceException.java | 75 |
8 files changed, 237 insertions, 339 deletions
diff --git a/libjava/java/net/BindException.java b/libjava/java/net/BindException.java index 5b1e4e7..3d11c4a 100644 --- a/libjava/java/net/BindException.java +++ b/libjava/java/net/BindException.java @@ -1,5 +1,5 @@ /* BindException.java -- An exception occurred while binding to a socket - 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 @@ -38,49 +38,35 @@ 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. + * This exception indicates that an error occurred while attempting to bind + * socket to a particular port. + * + * @author Aaron M. Renn <arenn@urbanophile.com> + * @author Warren Levy <warrenl@cygnus.com> + * @status updated to 1.4 */ - -/** - * This exception indicates that an error occurred while attempting to bind - * socket to a particular port. - * - * @author Aaron M. Renn (arenn@urbanophile.com) - * @author Warren Levy <warrenl@cygnus.com> - * @date March 5, 1999. - */ public class BindException extends SocketException { + /** + * Compatible with JDK 1.1+. + */ + private static final long serialVersionUID = -5945005768251722951L; -/* - * Constructors - */ - -/** - * Initializes a new instance of <code>BindException</code> without - * a descriptive error message. - */ -public -BindException() -{ - super(); -} - -/*************************************************************************/ - -/** - * Initializes a new instance of <code>BindException</code> with - * a descriptive error message, such as the text from strerror(3). - * - * @param message A message describing the error that occurred. - */ -public -BindException(String message) -{ - super(message); -} + /** + * Create a new instance without a descriptive error message. + */ + public BindException() + { + } + /** + * Create a new instance with a descriptive error message, such as the + * text from strerror(3). + * + * @param message a message describing the error that occurred + */ + public BindException(String message) + { + super(message); + } } // class BindException - diff --git a/libjava/java/net/ConnectException.java b/libjava/java/net/ConnectException.java index 673561a..e731858 100644 --- a/libjava/java/net/ConnectException.java +++ b/libjava/java/net/ConnectException.java @@ -1,5 +1,5 @@ /* ConnectException.java -- An exception occurred while connecting to a host - 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 @@ -39,50 +39,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. + * This exception indicates that an error occurred while attempting to + * connect to a remote host. Often this indicates that the remote host + * refused the connection (ie, is not listening on the target socket). + * + * @author Aaron M. Renn <arenn@urbanophile.com> + * @author Warren Levy <warrenl@cygnus.com> + * @since 1.1 + * @status updated to 1.4 */ - -/** - * This exception indicates that an error occurred while attempting to - * connect to a remote host. Often this indicates that the remote host - * refused the connection (ie, is not listening on the target socket). - * - * @author Aaron M. Renn (arenn@urbanophile.com) - * @author Warren Levy <warrenl@cygnus.com> - * @date March 5, 1999. - */ public class ConnectException extends SocketException { + /** + * Compatible with JDK 1.1+. + */ + private static final long serialVersionUID = 3831404271622369215L; -/* - * Constructors - */ - -/** - * Initializes a new instance of <code>ConnectException</code> without - * a descriptive error message. - */ -public -ConnectException() -{ - super(); -} - -/*************************************************************************/ - -/** - * Initializes a new instance of <code>ConnectException</code> with - * a descriptive error message, such as the text from strerror(3). - * - * @param message A message describing the error that occurred. - */ -public -ConnectException(String message) -{ - super(message); -} + /** + * Create a new instance without a descriptive error message. + */ + public ConnectException() + { + } + /** + * Create a new instance with a descriptive error message, such as the + * text from strerror(3). + * + * @param message a message describing the error that occurred + */ + public ConnectException(String message) + { + super(message); + } } // class ConnectException - diff --git a/libjava/java/net/MalformedURLException.java b/libjava/java/net/MalformedURLException.java index a74992b0..9cfae9a 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 - diff --git a/libjava/java/net/NoRouteToHostException.java b/libjava/java/net/NoRouteToHostException.java index 58ecfba..2f7fb72 100644 --- a/libjava/java/net/NoRouteToHostException.java +++ b/libjava/java/net/NoRouteToHostException.java @@ -1,5 +1,5 @@ /* NoRouteToHostException.java -- Cannot connect to a host - 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 @@ -39,49 +39,36 @@ 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. - */ - -/** * This exception indicates that there is no TCP/IP route to the requested * host. This is often due to a misconfigured routing table. * - * @author Aaron M. Renn (arenn@urbanophile.com) + * @author Aaron M. Renn <arenn@urbanophile.com> * @author Warren Levy <warrenl@cygnus.com> - * @date March 5, 1999. + * @since 1.1 + * @status updated to 1.4 */ public class NoRouteToHostException extends SocketException { + /** + * Compatible with JDK 1.1+. + */ + private static final long serialVersionUID = -1897550894873493790L; -/* - * Constructors - */ - -/** - * Initializes an instance of <code>NoRouteToHostException</code> - * without a descriptive error message. - */ -public -NoRouteToHostException() -{ - super(); -} - -/*************************************************************************/ - -/** - * Initializes an instance of <code>NoRouteToHostException</code> - * witha descriptive error message, such as the text from strerror(3). - * - * @param message A message describing the error that occurred. - */ -public -NoRouteToHostException(String message) -{ - super(message); -} + /** + * Create an instance without a descriptive error message. + */ + public NoRouteToHostException() + { + } + /** + * Create an instance with a descriptive error message, such as the text + * from strerror(3). + * + * @param message a message describing the error that occurred + */ + public NoRouteToHostException(String message) + { + super(message); + } } // class NoRouteToHostException - diff --git a/libjava/java/net/ProtocolException.java b/libjava/java/net/ProtocolException.java index dbdefb7..c50bbcf 100644 --- a/libjava/java/net/ProtocolException.java +++ b/libjava/java/net/ProtocolException.java @@ -1,5 +1,5 @@ -/* ProtocolException.java -- A low level protocol error occurred - Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc. +/* ProtocolException.java -- a low level protocol error occurred + 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,51 +37,38 @@ 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 some sort of low level protocol - * exception occurred. Look in the descriptive message (if any) for - * details on what went wrong - * - * @author Aaron M. Renn (arenn@urbanophile.com) - * @author Warren Levy <warrenl@cygnus.com> - * @date March 5, 1999. - */ -public class ProtocolException extends java.io.IOException -{ - -/* - * Constructors + * This exception indicates that some sort of low level protocol + * exception occurred. Look in the descriptive message (if any) for + * details on what went wrong. + * + * @author Aaron M. Renn <arenn@urbanophile.com> + * @author Warren Levy <warrenl@cygnus.com> + * @status updated to 1.4 */ - -/** - * Initializes a new instance of <code>ProtocolException</code> - * without a descriptive error message. - */ -public -ProtocolException() +public class ProtocolException extends IOException { - super(); -} + /** + * Compatible with JDK 1.0+. + */ + private static final long serialVersionUID = -6098449442062388080L; -/*************************************************************************/ - -/** - * Initializes a new instance of <code>ProtocolException</code> - * with a descriptive error message. - * - * @param message A message describing the error that occurred. - */ -public -ProtocolException(String message) -{ - super(message); -} + /** + * Create a new instance without a descriptive error message. + */ + public ProtocolException() + { + } + /** + * Create a new instance with a descriptive error message. + * + * @param message a message describing the error that occurred + */ + public ProtocolException(String message) + { + super(message); + } } // class ProtocolException - diff --git a/libjava/java/net/SocketException.java b/libjava/java/net/SocketException.java index 6451b7d..6494cae 100644 --- a/libjava/java/net/SocketException.java +++ b/libjava/java/net/SocketException.java @@ -1,5 +1,5 @@ /* SocketException.java -- An exception occurred while performing a socket op - Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc. + Copyright (C) 1998, 1999, 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,49 +37,38 @@ exception statement from your version. */ package java.net; -/* Written using on-line Java Platform 1.2 API Specification. - * Believed complete and correct. - */ +import java.io.IOException; /** - * This exception indicates that a generic error occurred related to an - * operation on a socket. Check the descriptive message (if any) for - * details on the nature of this error - * - * @author Aaron M. Renn (arenn@urbanophile.com) - * @author Per Bothner - * @date January 6, 1999. - */ -public class SocketException extends java.io.IOException -{ - -/* - * Constructors + * This exception indicates that a generic error occurred related to an + * operation on a socket. Check the descriptive message (if any) for + * details on the nature of this error + * + * @author Aaron M. Renn <arenn@urbanophile.com> + * @author Per Bothner + * @status updated to 1.4 */ - -/** - * Initializes a new instance of <code>SocketException</code> without - * a descriptive error message. - */ -public -SocketException() +public class SocketException extends IOException { - super(); -} + /** + * Compatible with JDK 1.0+. + */ + private static final long serialVersionUID = -5935874303556886934L; -/*************************************************************************/ - -/** - * Initializes a new instance of <code>SocketException</code> without - * a descriptive error message. - * - * @param message A message describing the error that occurred. - */ -public -SocketException(String message) -{ - super(message); -} + /** + * Create a new instance without a descriptive error message. + */ + public SocketException() + { + } + /** + * Create a new instance with a descriptive error message. + * + * @param message a message describing the error that occurred + */ + public SocketException(String message) + { + super(message); + } } // class SocketException - diff --git a/libjava/java/net/UnknownHostException.java b/libjava/java/net/UnknownHostException.java index 7a56f26..46b7040 100644 --- a/libjava/java/net/UnknownHostException.java +++ b/libjava/java/net/UnknownHostException.java @@ -1,5 +1,5 @@ -/* UnknownHostException.java -- The hostname is not unknown - Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc. +/* UnknownHostException.java -- The hostname is unknown + 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,52 +37,40 @@ exception statement from your version. */ package java.net; -/* - * Written using on-line Java Platform 1.2 API Specification. - * Status: Believed complete and correct. - */ +import java.io.IOException; /** - * This exception indicates that an attempt was made to reference a hostname - * or IP address that is not valid. This could possibly indicate that a - * DNS problem has occurred, but most often means that the host was not - * correctly specified. - * - * @author Aaron M. Renn (arenn@urbanophile.com) - * @author Per Bothner - * @date January 6, 1999. - */ -public class UnknownHostException extends java.io.IOException -{ - -/* - * Constructors + * This exception indicates that an attempt was made to reference a hostname + * or IP address that is not valid. This could possibly indicate that a + * DNS problem has occurred, but most often means that the host was not + * correctly specified. + * + * @author Aaron M. Renn <arenn@urbanophile.com> + * @author Per Bothner + * @status updated to 1.4 */ - -/** - * Initializes a new instance of <code>UnknownHostException</code> - * without a descriptive error message. - */ -public -UnknownHostException() +public class UnknownHostException extends IOException { - super(); -} + /** + * Compatible with JDK 1.0+. + */ + private static final long serialVersionUID = -4639126076052875403L; -/*************************************************************************/ - -/** - * Initializes a new instance of <code>UnknownHostException</code> - * with a descriptive error message, such as the name of the host - * that could not be resolved. - * - * @param message A message describing the error that occurrred. - */ -public -UnknownHostException(String message) -{ - super(message); -} + /** + * Create a new instance without a descriptive error message. + */ + public UnknownHostException() + { + } + /** + * Create a new instance with a descriptive error message, such as the + * name of the host that could not be resolved. + * + * @param message a message describing the error that occurred + */ + public UnknownHostException(String message) + { + super(message); + } } // class UnknownHostException - diff --git a/libjava/java/net/UnknownServiceException.java b/libjava/java/net/UnknownServiceException.java index 1ccf21d..dfb7a44 100644 --- a/libjava/java/net/UnknownServiceException.java +++ b/libjava/java/net/UnknownServiceException.java @@ -1,5 +1,5 @@ /* UnknownServiceException.java -- A service error occurred - 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,52 +37,39 @@ 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; /** - * Contrary to what you might think, this does not indicate that the - * TCP/IP service name specified was invalid. Instead it indicates that - * the MIME type returned from a URL could not be determined or that an - * attempt was made to write to a read-only URL. - * - * @author Aaron M. Renn (arenn@urbanophile.com) - * @author Warren Levy <warrenl@cygnus.com> - * @date March 5, 1999. - */ -public class UnknownServiceException extends java.io.IOException -{ - -/* - * Constructors + * Contrary to what you might think, this does not indicate that the + * TCP/IP service name specified was invalid. Instead it indicates that + * the MIME type returned from a URL could not be determined or that an + * attempt was made to write to a read-only URL. + * + * @author Aaron M. Renn <arenn@urbanophile.com> + * @author Warren Levy <warrenl@cygnus.com> + * @status updated to 1.4 */ - -/** - * Initializes a new instance of <code>UnknownServiceException</code> - * without a descriptive error message. - */ -public -UnknownServiceException() +public class UnknownServiceException extends IOException { - super(); -} + /** + * Compatible with JDK 1.0+. + */ + private static final long serialVersionUID = -4169033248853639508L; -/*************************************************************************/ - -/** - * Initializes a new instance of <code>UnknownServiceException</code> - * without a descriptive error message. - * - * @param message A message describing the error that occurred. - */ -public -UnknownServiceException(String message) -{ - super(message); -} + /** + * Create a new instance without a descriptive error message. + */ + public UnknownServiceException() + { + } + /** + * Create a new instance with a descriptive error message. + * + * @param message a message describing the error that occurred + */ + public UnknownServiceException(String message) + { + super(message); + } } // class UnknownServiceException - |