文档

分享异常接口

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;
    }
}
  • 本页导读 (0)
文档反馈