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

com.kucoin.sdk.exception.KucoinApiException Maven / Gradle / Ivy

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() + '\'' +
                '}';
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy