Skip to content

Commit 01b31ff

Browse files
iSnowGoodforGod
authored andcommitted
Removed events stuff again, moved to different library
(cherry picked from commit 5c79d66)
1 parent d7ab7ec commit 01b31ff

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

‎src/main/java/io/api/etherscan/core/impl/BasicProvider.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ <T> T convert(final String json, final Class<T> tClass) {
4242
try {
4343
return gson.fromJson(json, tClass);
4444
} catch (Exception e) {
45-
throw new ParseException(e.getMessage(), e.getCause());
45+
throw new ParseException(e.getMessage(), e.getCause(), json);
4646
}
4747
}
4848

‎src/main/java/io/api/etherscan/error/ParseException.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@
77
* @since 29.10.2018
88
*/
99
public class ParseException extends ApiException {
10+
String json;
1011

11-
public ParseException(String message, Throwable cause) {
12+
public ParseException(String message, Throwable cause, String json) {
1213
super(message, cause);
14+
this.json = json;
1315
}
1416
}

0 commit comments

Comments
 (0)