![JAR search and dependency download from the Maven repository](/logo.png)
com.binance.connector.client.exceptions.BinanceClientException Maven / Gradle / Ivy
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;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy