All Products
Search
Document Center

Mobile Platform as a Service:ShareException

Last Updated:May 18, 2021

This topic describes how to use the ShareException operation, as shown in the following code:

  1. public class ShareException extends RuntimeException {
  2. /**
  3. * Status code: User cancelled
  4. */
  5. public static final int USER_CANCEL = 1001;
  6. /**
  7. * Status code: Authentication failed
  8. */
  9. public static final int AUTH_ERROR = 1002;
  10. /**
  11. * Status code: Unknown error
  12. */
  13. public static final int UNKNOWN_ERROR = 1003;
  14. /**
  15. * Status code: Application not installed
  16. */
  17. public static final int APP_UNINSTALL = 40501;
  18. /**
  19. * Obtain status code
  20. * @return
  21. */
  22. public int getStatusCode() {
  23. return this.statusCode;
  24. }
  25. }