分享异常接口

更新时间:2022-01-17 11:32:11

ShareException 分享异常接口:

public class ShareException extends RuntimeException {

    /**
     * 状态码:用户取消
     */
    public static final int USER_CANCEL = 1001;

    /**
     * 状态码:认证失败
     */
    public static final int AUTH_ERROR = 1002;

    /**
     * 状态码:其他异常
     */
    public static final int UNKNOWN_ERROR = 1003;

    /**
     * 状态码:应用未安装
     */
    public static final int APP_UNINSTALL = 40501;

    /**
     * 获取状态码
     * @return
     */
    public int getStatusCode() {
        return this.statusCode;
    }
}
    AI助理

    点击开启售前

    在线咨询服务

    你好,我是AI助理

    可以解答问题、推荐解决方案等