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

org.knowm.xchange.coinbase.v2.dto.CoinbaseException Maven / Gradle / Ivy

There is a newer version: 5.2.1
Show newest version
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