This topic describes how to use the ShareException operation, as shown in the following code:
public class ShareException extends RuntimeException {/*** Status code: User cancelled*/public static final int USER_CANCEL = 1001;/*** Status code: Authentication failed*/public static final int AUTH_ERROR = 1002;/*** Status code: Unknown error*/public static final int UNKNOWN_ERROR = 1003;/*** Status code: Application not installed*/public static final int APP_UNINSTALL = 40501;/*** Obtain status code* @return*/public int getStatusCode() {return this.statusCode;}}