Skip to content

Commit d2536ff

Browse files
author
David R. MacIver
committed
remove the use of throwable.getCause in ThrowableCreatedElsewhere. It's useless, because we can only use this thing when there's no cause
1 parent d1132ad commit d2536ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/com/rabbitmq/utility/Utility.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
public class Utility {
4242
static class ThrowableCreatedElsewhere extends Throwable{
4343
public ThrowableCreatedElsewhere(Throwable throwable){
44-
super(throwable.getClass() + " created elsewhere", throwable.getCause());
44+
super(throwable.getClass() + " created elsewhere");
4545
this.setStackTrace(throwable.getStackTrace());
4646
}
4747

0 commit comments

Comments
 (0)