com.kucoin.sdk.exception.KucoinApiException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kucoin-java-sdk Show documentation
Show all versions of kucoin-java-sdk Show documentation
Fixed fork of the official Kucoin SDK
The newest version!
/**
* Copyright 2019 Mek Global Limited.
*/
package com.kucoin.sdk.exception;
/**
* Created by zicong.lu on 2018/12/14.
*/
public class KucoinApiException extends RuntimeException {
private static final long serialVersionUID = 8592824166988095909L;
private String code;
public KucoinApiException(String message) {
super(message);
}
public KucoinApiException(String message, Throwable cause) {
super(message, cause);
}
public KucoinApiException(String code, String message) {
super(message);
this.code = code;
}
public String getCode() {
return code;
}
@Override
public String toString() {
return "KucoinApiException{" +
"code='" + getCode() + '\'' +
", message='" + getMessage() + '\'' +
'}';
}
}