Skip to content

Commit 1497300

Browse files
author
Aman Alam
authored
Merge pull request #15 from HarmanInternational/master
[BUG] Constructor with only Throwable parameter lose responseCode information
2 parents c01b261 + 5bd19cd commit 1497300

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)