aboutsummaryrefslogtreecommitdiff
path: root/libjava/java/net/SocketException.java
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/java/net/SocketException.java')
-rw-r--r--libjava/java/net/SocketException.java71
1 files changed, 30 insertions, 41 deletions
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
-