summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew John Hughes <gnu_andrew@member.fsf.org>2014-05-07 11:44:40 +0100
committerAndrew John Hughes <gnu_andrew@member.fsf.org>2014-05-07 11:44:40 +0100
commit89e04db227083da5489c41ebfd003b140283d4d8 (patch)
tree7f8ca357030baed3404717c9a6f6ec9451ba0695
parentceaf401638b2861881d843c08d7800c03bc22e7b (diff)
downloadclasspath-89e04db227083da5489c41ebfd003b140283d4d8.tar.gz
Add missing IOException constructors.
2014-05-07 Andrew John Hughes <gnu_andrew@member.fsf.org> * java/io/IOException.java: (IOException(String,Throwable)): Add missing constructor. (IOException(Throwable)): Likewise. Signed-off-by: Andrew John Hughes <gnu_andrew@member.fsf.org>
-rw-r--r--ChangeLog6
-rw-r--r--java/io/IOException.java26
2 files changed, 32 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 4a7e74ddb..0c61a53d2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2014-05-07 Andrew John Hughes <gnu_andrew@member.fsf.org>
+
+ * java/io/IOException.java:
+ (IOException(String,Throwable)): Add missing constructor.
+ (IOException(Throwable)): Likewise.
+
2014-04-30 Andrew John Hughes <gnu_andrew@member.fsf.org>
* configure.ac:
diff --git a/java/io/IOException.java b/java/io/IOException.java
index cf3ad1946..cb2bf1cbf 100644
--- a/java/io/IOException.java
+++ b/java/io/IOException.java
@@ -71,4 +71,30 @@ public class IOException extends Exception
{
super(message);
}
+
+ /**
+ * Create an exception with a descriptive error message and cause.
+ *
+ * @param message the descriptive error message.
+ * @param cause the cause of the error. This may be {@code null} to
+ * to indicate that the cause is unknown.
+ * @since 1.6
+ */
+ public IOException(String message, Throwable cause)
+ {
+ super(message, cause);
+ }
+
+ /**
+ * Create an exception with a cause.
+ *
+ * @param cause the cause of the error. This may be {@code null} to
+ * to indicate that the cause is unknown.
+ * @since 1.6
+ */
+ public IOException(Throwable cause)
+ {
+ super(cause);
+ }
+
} // class IOException