Skip to content

Commit 5df4db8

Browse files
author
Emile Joubert
committed
Use 1.5-compatible exception constructor
1 parent 01fd29f commit 5df4db8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/com/rabbitmq/client/impl/AMQChannel.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,8 @@ public static IOException wrap(ShutdownSignalException ex) {
124124
}
125125

126126
public static IOException wrap(ShutdownSignalException ex, String message) {
127-
IOException ioe = new IOException(message, ex);
127+
IOException ioe = new IOException(message);
128+
ioe.initCause(ex);
128129
return ioe;
129130
}
130131

0 commit comments

Comments
 (0)