io.everitoken.sdk.java.exceptions.ApiResponseException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of chain-sdk Show documentation
Show all versions of chain-sdk Show documentation
Official Java SDK for everiToken public chain. https://www.everitoken.io
package io.everitoken.sdk.java.exceptions;
import com.alibaba.fastjson.JSONObject;
public class ApiResponseException extends Exception implements EvtException {
private JSONObject raw;
public ApiResponseException(String message, Throwable cause) {
super(message, cause);
if (cause instanceof ApiResponseException) {
this.raw = ((ApiResponseException) cause).getRaw();
}
}
public ApiResponseException(String message, JSONObject raw) {
super(message);
this.raw = raw;
}
public JSONObject getRaw() {
return raw;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy