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

cn.hyperchain.sdk.exception.RequestExceptionCode Maven / Gradle / Ivy

There is a newer version: 1.4.3
Show newest version
package cn.hyperchain.sdk.exception;

public enum RequestExceptionCode {
    PARAM_ERROR(-4000, "request params error"),
    REQUEST_ERROR(-9996, "request fail, request param error"),
    POLLING_TIME_OUT(-9998, "polling get receipt error"),
    NETWORK_PROBLEM(-9999, "network problem, request failed"),
    NETWORK_GETBODY_FAILED(-9999, "get response body failed"),
    RECEIPT_NOT_FOUND(-32001, "can not find receipt"),
    SYSTEM_BUSY(-32006, "system is busy"),
    HTTP_TIME_OUT(-32096, "request time out");

    private Integer code;
    private String msg;

    RequestExceptionCode(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy