Skip to content

Commit 27c4c88

Browse files
committed
IO-462 IOExceptionWithCause no longer needed
Simplify code git-svn-id: https://svn.apache.org/repos/asf/commons/proper/io/trunk@1643107 13f79535-47bb-0310-9956-ffa450edef68
1 parent fe336de commit 27c4c88

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

src/main/java/org/apache/commons/io/IOExceptionWithCause.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,7 @@ public class IOExceptionWithCause extends IOException {
4747
* the cause (see {@link #getCause()}). A {@code null} value is allowed.
4848
*/
4949
public IOExceptionWithCause(final String message, final Throwable cause) {
50-
super(message);
51-
this.initCause(cause);
50+
super(message, cause);
5251
}
5352

5453
/**
@@ -62,8 +61,7 @@ public IOExceptionWithCause(final String message, final Throwable cause) {
6261
* the cause (see {@link #getCause()}). A {@code null} value is allowed.
6362
*/
6463
public IOExceptionWithCause(final Throwable cause) {
65-
super(cause == null ? null : cause.toString());
66-
this.initCause(cause);
64+
super(cause);
6765
}
6866

6967
}

0 commit comments

Comments
 (0)