org.knowm.xchange.coinbase.v2.dto.CoinbaseException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xchange-coinbase Show documentation
Show all versions of xchange-coinbase Show documentation
XChange implementation for Coinbase
package org.knowm.xchange.coinbase.v2.dto;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
import si.mazi.rescu.HttpStatusExceptionSupport;
@SuppressWarnings("serial")
public class CoinbaseException extends HttpStatusExceptionSupport {
public CoinbaseException(@JsonProperty("errors") List errors) {
super(errors.get(0).message);
}
static class CoinbaseError {
@JsonProperty String id;
@JsonProperty String message;
@Override
public String toString() {
return "CoinbaseError [id=" + id + ", message=" + message + "]";
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy