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

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, String json) {
1213
super(message, cause);
14+
this.json = json;
1315
}
1416
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy