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

org.knowm.xchange.kucoin.dto.KucoinException Maven / Gradle / Ivy

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;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy