Skip to content

Commit 9597444

Browse files
authored
Merge pull request #5 from mkotb/master
Pass in parent exception for ErrorResponseException
2 parents ed0d25b + 1481640 commit 9597444

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>io.ipinfo</groupId>
88
<artifactId>ipinfo-api</artifactId>
9-
<version>1.0-SNAPSHOT</version>
9+
<version>1.1-SNAPSHOT</version>
1010
<packaging>jar</packaging>
1111

1212
<parent>

src/main/java/io/ipinfo/api/request/ASNRequest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public ASNResponse handle() throws RateLimitedException {
2828
try {
2929
return gson.fromJson(response.body().string(), ASNResponse.class);
3030
} catch (Exception ex) {
31-
throw new ErrorResponseException();
31+
throw new ErrorResponseException(ex);
3232
}
3333
}
3434
}

src/main/java/io/ipinfo/api/request/IPRequest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public IPResponse handle() throws RateLimitedException {
2727
try {
2828
return gson.fromJson(response.body().string(), IPResponse.class);
2929
} catch (Exception ex) {
30-
throw new ErrorResponseException();
30+
throw new ErrorResponseException(ex);
3131
}
3232
}
3333
}

0 commit comments

Comments
 (0)