com.binance.connector.client.exceptions.BinanceClientException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of binance-connector-java Show documentation
Show all versions of binance-connector-java Show documentation
lightweight connector to API
package com.binance.connector.client.exceptions;
public class BinanceClientException extends RuntimeException {
private static final long serialVersionUID = 1L;
private final int ERROR_CODE_0 = 0;
private final int httpStatusCode;
private final int errorCode;
private String errMsg;
public BinanceClientException(String fullErrMsg, int httpStatusCode) {
super(fullErrMsg);
this.httpStatusCode = httpStatusCode;
this.errorCode = ERROR_CODE_0;
}
public BinanceClientException(String fullErrMsg, String errMsg, int httpStatusCode, int errorCode) {
super(fullErrMsg);
this.httpStatusCode = httpStatusCode;
this.errorCode = errorCode;
this.errMsg = errMsg;
}
public int getErrorCode() {
return errorCode;
}
public int getHttpStatusCode() {
return httpStatusCode;
}
public String getErrMsg() {
return errMsg;
}
}