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

io.api.etherscan.error.EtherScanException Maven / Gradle / Ivy

There is a newer version: 2.1.0
Show newest version
package io.api.etherscan.error;

import io.api.etherscan.model.utility.BaseResponseTO;
import io.api.etherscan.model.utility.StringResponseTO;

/**
 * @author GoodforGod
 * @since 29.10.2018
 */
public class EtherScanException extends ApiException {

    public EtherScanException(BaseResponseTO response) {
        this(response.getMessage() + ", with status: " + response.getStatus());
    }

    public EtherScanException(StringResponseTO response) {
        this(response.getResult() + ", with status: " + response.getStatus() + ", with message: " + response.getMessage());
    }

    public EtherScanException(String message) {
        super(message);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy