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

com.binance.connector.client.exceptions.BinanceServerException Maven / Gradle / Ivy

There is a newer version: 3.2.0
Show newest version
package com.binance.connector.client.exceptions;

public class BinanceServerException extends RuntimeException {

    private static final long serialVersionUID = 1L;
    private static final int invalidStatusCode = -1;
    private final int httpStatusCode;

    public BinanceServerException(String fullErrMsg) {
        super(fullErrMsg);
        this.httpStatusCode = invalidStatusCode;
    }

    public BinanceServerException(String fullErrMsg, int httpStatusCode) {
        super(fullErrMsg);
        this.httpStatusCode = httpStatusCode;
    }

    public int getHttpStatusCode() {
        return httpStatusCode;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy