All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.everitoken.sdk.java.exceptions.ApiResponseException Maven / Gradle / Ivy

There is a newer version: 1.4.6
Show newest version
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