summaryrefslogtreecommitdiff
path: root/libjava/java/net/PortUnreachableException.java
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2002-08-21 18:54:07 +0000
committerTom Tromey <tromey@gcc.gnu.org>2002-08-21 18:54:07 +0000
commit75c6e5486b4e266ef5e51e8d94ab73ae94d8607b (patch)
treec71c35641b332594b685388180f0a5230bfc5e16 /libjava/java/net/PortUnreachableException.java
parentd873d8274339cd0a352eb4cf287f6b04eeb08c1d (diff)
Makefile.in: Rebuilt.
* Makefile.in: Rebuilt. * Makefile.am (ordinary_java_source_files): Added SocketAddress.java, InetSocketAddress.java. * java/net/PortUnreachableException.java: Merged with Classpath. * java/net/SocketTimeoutException.java: Likewise. * java/net/URISyntaxException.java: Likewise. * java/net/SocketAddress.java: New class from Classpath. * java/net/InetSocketAddress.java: Likewise. From-SVN: r56494
Diffstat (limited to 'libjava/java/net/PortUnreachableException.java')
-rw-r--r--libjava/java/net/PortUnreachableException.java22
1 files changed, 13 insertions, 9 deletions
diff --git a/libjava/java/net/PortUnreachableException.java b/libjava/java/net/PortUnreachableException.java
index b31bcbcd6a3..b6abfe95a92 100644
--- a/libjava/java/net/PortUnreachableException.java
+++ b/libjava/java/net/PortUnreachableException.java
@@ -1,4 +1,4 @@
-/* PortUnreachableException.java
+/* PortUnreachableException.java -- received an ICMP port unreachable datagram
Copyright (C) 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,19 +37,22 @@ exception statement from your version. */
package java.net;
-import java.io.IOException;
-
/**
- * This exception indicates that a URL passed to an object was not in a
- * valid format.
+ * This exception signals that an ICMP port unreachable datagram has been
+ * received.
*
- * @author Michael Koch <konqueror@gmx.de>
+ * @author Eric Blake <ebb9@email.byu.edu>
* @since 1.4
- * @status should be completely JDK 1.4 compatible
+ * @status updated to 1.4
*/
-public class PortUnreachableException extends IOException
+public class PortUnreachableException extends SocketException
{
/**
+ * Compatible with JDK 1.0+.
+ */
+ private static final long serialVersionUID = 8462541992376507323L;
+
+ /**
* Create a new instance without a descriptive error message.
*/
public PortUnreachableException()
@@ -66,3 +69,4 @@ public class PortUnreachableException extends IOException
super(message);
}
} // class PortUnreachableException
+