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

eleme.openapi.sdk.api.exception.ServiceException Maven / Gradle / Ivy

The newest version!
package eleme.openapi.sdk.api.exception;

public class ServiceException extends Exception {
    private String code;

    public ServiceException() {
        super("业务异常,请重试");
    }

    public ServiceException(String message) {
        super(message);
    }

    public ServiceException(String code, String message) {
        this(message);
        this.setCode(code);
    }

    public ServiceException(String code, String message, Throwable cause) {
        super(message, cause);
        this.setCode(code);
    }

    public ServiceException(String code, Throwable cause) {
        super(cause);
        this.setCode(code);
    }

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

    public String getCode() {
        return this.code;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy