IO-462 IOExceptionWithCause no longer needed
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/io/trunk@1642799 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/src/main/java/org/apache/commons/io/FileSystemUtils.java b/src/main/java/org/apache/commons/io/FileSystemUtils.java
index 0205cec..4d2e084 100644
--- a/src/main/java/org/apache/commons/io/FileSystemUtils.java
+++ b/src/main/java/org/apache/commons/io/FileSystemUtils.java
@@ -444,7 +444,7 @@
return bytes;
} catch (final NumberFormatException ex) {
- throw new IOExceptionWithCause(
+ throw new IOException(
"Command line '" + DF + "' did not return numeric data as expected " +
"for path '" + path + "'- check path is valid", ex);
}
@@ -512,7 +512,7 @@
return lines;
} catch (final InterruptedException ex) {
- throw new IOExceptionWithCause(
+ throw new IOException(
"Command line threw an InterruptedException " +
"for command " + Arrays.asList(cmdAttribs) + " timeout=" + timeout, ex);
} finally {
diff --git a/src/main/java/org/apache/commons/io/TaggedIOException.java b/src/main/java/org/apache/commons/io/TaggedIOException.java
index 90380d9..8b119ff 100644
--- a/src/main/java/org/apache/commons/io/TaggedIOException.java
+++ b/src/main/java/org/apache/commons/io/TaggedIOException.java
@@ -26,7 +26,7 @@
*
* @since 2.0
*/
-public class TaggedIOException extends IOExceptionWithCause {
+public class TaggedIOException extends IOException {
/**
* Generated serial version UID.
diff --git a/src/test/java/org/apache/commons/io/IOExceptionWithCauseTestCase.java b/src/test/java/org/apache/commons/io/IOExceptionWithCauseTestCase.java
index 4e34a56..6103eba 100644
--- a/src/test/java/org/apache/commons/io/IOExceptionWithCauseTestCase.java
+++ b/src/test/java/org/apache/commons/io/IOExceptionWithCauseTestCase.java
@@ -17,6 +17,8 @@
package org.apache.commons.io;
+import java.io.IOException;
+
import junit.framework.TestCase;
/**
@@ -31,7 +33,7 @@
*/
public void testIOExceptionStringThrowable() {
final Throwable cause = new IllegalArgumentException("cause");
- final IOExceptionWithCause exception = new IOExceptionWithCause("message", cause);
+ final IOException exception = new IOException("message", cause);
this.validate(exception, cause, "message");
}
@@ -40,7 +42,7 @@
*/
public void testIOExceptionThrowable() {
final Throwable cause = new IllegalArgumentException("cause");
- final IOExceptionWithCause exception = new IOExceptionWithCause(cause);
+ final IOException exception = new IOException(cause);
this.validate(exception, cause, "java.lang.IllegalArgumentException: cause");
}