org.knowm.xchange.kucoin.dto.KucoinException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xchange-kucoin Show documentation
Show all versions of xchange-kucoin Show documentation
XChange implementation for the Kucoin Exchange
The newest version!
package org.knowm.xchange.kucoin.dto;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
import java.util.Map;
import si.mazi.rescu.HttpResponseAware;
import si.mazi.rescu.HttpStatusExceptionSupport;
public class KucoinException extends HttpStatusExceptionSupport implements HttpResponseAware {
private final int code;
private Map> headers;
public KucoinException(@JsonProperty("code") int code, @JsonProperty("msg") String msg) {
super(msg);
this.code = code;
}
public int getCode() {
return code;
}
@Override
public void setResponseHeaders(Map> headers) {
this.headers = headers;
}
@Override
public Map> getResponseHeaders() {
return headers;
}
}