Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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‎

Lines changed: 1 addition & 1 deletion
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‎

Lines changed: 3 additions & 1 deletion
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, Stringjson) {
1213
super(message, cause);
14+
this.json = json;
1315
}
1416
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /