summaryrefslogtreecommitdiffstats
path: root/libjava/java/net/SocketTimeoutException.java
diff options
context:
space:
mode:
authortromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2002-08-21 18:54:07 +0000
committertromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2002-08-21 18:54:07 +0000
commit35da8ccf6837638fc2f830a9a3086adc3c839842 (patch)
treec71c35641b332594b685388180f0a5230bfc5e16 /libjava/java/net/SocketTimeoutException.java
parent660df24919f1856d78d79440633d80dc8eb67dbe (diff)
downloadppe42-gcc-35da8ccf6837638fc2f830a9a3086adc3c839842.tar.gz
ppe42-gcc-35da8ccf6837638fc2f830a9a3086adc3c839842.zip
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56494 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/java/net/SocketTimeoutException.java')
-rw-r--r--libjava/java/net/SocketTimeoutException.java21
1 files changed, 12 insertions, 9 deletions
diff --git a/libjava/java/net/SocketTimeoutException.java b/libjava/java/net/SocketTimeoutException.java
index 3c341b30ccb..e3895518d19 100644
--- a/libjava/java/net/SocketTimeoutException.java
+++ b/libjava/java/net/SocketTimeoutException.java
@@ -1,4 +1,4 @@
-/* SocketTimeoutException.java
+/* SocketTimeoutException.java -- the socket timed out
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,20 +37,23 @@ exception statement from your version. */
package java.net;
-import java.io.IOException;
+import java.io.InterruptedIOException;
/**
- * 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
+ * This exception signals that a socket read or accept timed out.
*
- * @author Michael Koch <konqueror@gmx.de>
+ * @author Eric Blake <ebb9@email.byu.edu>
* @since 1.4
- * @status should be completele JDK 1.4 compatible
+ * @status updated to 1.4
*/
-public class SocketTimeoutException extends IOException
+public class SocketTimeoutException extends InterruptedIOException
{
/**
+ * Compatible with JDK 1.4+.
+ */
+ private static final long serialVersionUID = -8846654841826352300L;
+
+ /**
* Create a new instance without a descriptive error message.
*/
public SocketTimeoutException()
OpenPOWER on IntegriCloud