Skip to content

Commit 5bd19cd

Browse files
author
Ori Libhaber
committed
[BUG] Constructor with only Throwable parameter lose HTTP response
code information
1 parent 8810a22 commit 5bd19cd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/com/akamai/netstorage/NetStorageException.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@ public class NetStorageException extends RequestSigningException {
2828
private static final long serialVersionUID = 5716437270940718895L;
2929
private int responseCode = -1;
3030

31-
public NetStorageException(String message) {
31+
public NetStorageException(String message) {
3232
super(message);
3333
}
3434

3535
public NetStorageException(Throwable cause) {
36-
super(cause);
36+
this(cause.getMessage(), cause);
3737
}
3838

3939
public NetStorageException(String message, int responseCode) {

0 commit comments

Comments
 (0)