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

com.aliyun.sdk.gateway.sls.exception.SLSException Maven / Gradle / Ivy

There is a newer version: 0.2.16-beta
Show newest version
package com.aliyun.sdk.gateway.sls.exception;

import darabonba.core.exception.ServerException;

public class SLSException extends ServerException {

    private String errorCode;

    private String errorMessage;

    private String requestId;

    public SLSException(String errorCode, String errorMessage, String requestId) {
        this.errorCode = errorCode;
        this.errorMessage = errorMessage;
        this.requestId = requestId;
    }

    public String getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(String errorCode) {
        this.errorCode = errorCode;
    }

    public String getErrorMessage() {
        return errorMessage;
    }

    public void setErrorMessage(String errorMessage) {
        this.errorMessage = errorMessage;
    }

    public String getRequestId() {
        return requestId;
    }

    public void setRequestId(String requestId) {
        this.requestId = requestId;
    }

    @Override
    public String getMessage() {
        return errorMessage + "\n[Code]: " + errorCode + "\n[RequestId]: " + requestId;
    }
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy