Skip to content

Commit 518d735

Browse files
author
Niall Pemberton
committed
IO-148 rename CausedIOException to IOExceptionWithCause
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/io/trunk@609159 13f79535-47bb-0310-9956-ffa450edef68
1 parent 24c740b commit 518d735

4 files changed

Lines changed: 12 additions & 12 deletions

File tree

build-check-jdk13.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@
6262

6363
<include name="**/*.java"/>
6464
<exclude name="**/CharSequenceReader.java"/>
65+
<exclude name="**/IOExceptionWithCause.java"/>
6566
<exclude name="**/RegexFileFilter.java"/>
6667

6768
</javac>

src/java/org/apache/commons/io/CausedIOException.java renamed to src/java/org/apache/commons/io/IOExceptionWithCause.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,11 @@
2323
* Subclasses IOException with the {@link Throwable} constructors missing before Java 6. If you are using Java 6,
2424
* consider this class deprecated and use {@link IOException}.
2525
*
26-
* @see <a href="mailto:commons-user@jakarta.apache.org">Apache Commons Users List</a>
2726
* @author <a href="http://commons.apache.org/io/">Apache Commons IO</a>
28-
* @version $Id: $
27+
* @version $Id$
2928
* @since 1.4
3029
*/
31-
public class CausedIOException extends IOException {
30+
public class IOExceptionWithCause extends IOException {
3231

3332
/**
3433
* Defines the serial version UID.
@@ -47,7 +46,7 @@ public class CausedIOException extends IOException {
4746
* @param cause
4847
* the cause (see {@link #getCause()}). A <code>null</code> value is allowed.
4948
*/
50-
public CausedIOException(String message, Throwable cause) {
49+
public IOExceptionWithCause(String message, Throwable cause) {
5150
super(message);
5251
this.initCause(cause);
5352
}
@@ -62,7 +61,7 @@ public CausedIOException(String message, Throwable cause) {
6261
* @param cause
6362
* the cause (see {@link #getCause()}). A <code>null</code> value is allowed.
6463
*/
65-
public CausedIOException(Throwable cause) {
64+
public IOExceptionWithCause(Throwable cause) {
6665
super(cause == null ? null : cause.toString());
6766
this.initCause(cause);
6867
}

src/test/org/apache/commons/io/CausedIOExceptionTestCase.java renamed to src/test/org/apache/commons/io/IOExceptionWithCauseTestCase.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,28 +20,28 @@
2020
import junit.framework.TestCase;
2121

2222
/**
23-
* Tests CausedIOException
23+
* Tests IOExceptionWithCause
2424
*
2525
* @author <a href="mailto:ggregory@seagullsw.com">Gary Gregory</a>
2626
* @version $Id: $
2727
*/
28-
public class CausedIOExceptionTestCase extends TestCase {
28+
public class IOExceptionWithCauseTestCase extends TestCase {
2929

3030
/**
31-
* Tests the {@link CausedIOException#CausedIOException(String,Throwable)} constructor.
31+
* Tests the {@link IOExceptionWithCause#IOExceptionWithCause(String,Throwable)} constructor.
3232
*/
3333
public void testIOExceptionStringThrowable() {
3434
Throwable cause = new IllegalArgumentException("cause");
35-
CausedIOException exception = new CausedIOException("message", cause);
35+
IOExceptionWithCause exception = new IOExceptionWithCause("message", cause);
3636
this.validate(exception, cause, "message");
3737
}
3838

3939
/**
40-
* Tests the {@link CausedIOException#CausedIOException(Throwable)} constructor.
40+
* Tests the {@link IOExceptionWithCause#IOExceptionWithCause(Throwable)} constructor.
4141
*/
4242
public void testIOExceptionThrowable() {
4343
Throwable cause = new IllegalArgumentException("cause");
44-
CausedIOException exception = new CausedIOException(cause);
44+
IOExceptionWithCause exception = new IOExceptionWithCause(cause);
4545
this.validate(exception, cause, "java.lang.IllegalArgumentException: cause");
4646
}
4747

src/test/org/apache/commons/io/PackageTestSuite.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public static void main(String[] args) {
3535

3636
public static Test suite() {
3737
TestSuite suite = new TestSuite("IO Utilities");
38-
suite.addTest(new TestSuite(CausedIOExceptionTestCase.class));
38+
suite.addTest(new TestSuite(IOExceptionWithCauseTestCase.class));
3939
suite.addTest(new TestSuite(CopyUtilsTest.class));
4040
suite.addTest(new TestSuite(DemuxTestCase.class));
4141
suite.addTest(new TestSuite(DirectoryWalkerTestCase.class));

0 commit comments

Comments
 (0)