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

common.exception.HttpRequestException Maven / Gradle / Ivy

Go to download

The KSYUN Web Services SDK for Java provides Java APIs for building software on KSYUN' cost-effective, scalable, and reliable infrastructure products. The KSYUN Java SDK allows developers to code against APIs for all of KSYUN's infrastructure web services (KSC S3, KSC KEC, KSC RDS etc).

The newest version!
package common.exception;

/**
 * @Classname HttpRequestException
 * @Description http 请求异常
 */
public class HttpRequestException extends RuntimeException{

    private String errorCode;
    private String errorMsg;

    public HttpRequestException(String errorCode, String errorMsg) {
        super(errorMsg);
        this.errorCode = errorCode;
        this.errorMsg = errorMsg;
    }

    public String getErrorCode() {
        return errorCode;
    }

    public String getErrorMsg() {
        return errorMsg;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy