
com.xeiam.xchange.cointrader.dto.CointraderException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xchange-cointrader Show documentation
Show all versions of xchange-cointrader Show documentation
XChange implementation for the Cointrader Exchange
The newest version!
package com.xeiam.xchange.cointrader.dto;
import com.fasterxml.jackson.annotation.JsonProperty;
import si.mazi.rescu.HttpStatusExceptionSupport;
public class CointraderException extends HttpStatusExceptionSupport {
private final ErrorData errorData;
public CointraderException(@JsonProperty("message") String message, @JsonProperty("data") ErrorData errorData) {
super(errorData.message);
this.errorData = errorData;
}
public ErrorData getErrorData() {
return errorData;
}
public static class ErrorData {
public final Integer errorCode;
public final String message;
public ErrorData(@JsonProperty("errorCode") Integer errorCode, @JsonProperty("message") String message) {
this.errorCode = errorCode;
this.message = message;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy