Added in API level 28

UserManager.UserOperationException


public static class UserManager.UserOperationException
extends RuntimeException

java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.lang.RuntimeException
         ↳ android.os.UserManager.UserOperationException


Thrown to indicate user operation failed.

Summary

Public methods

int getUserOperationResult()

Returns the operation result code.

Inherited methods

Public methods

getUserOperationResult

Added in API level 28
public int getUserOperationResult ()

Returns the operation result code.

Returns
int Value is UserManager.USER_OPERATION_SUCCESS, UserManager.USER_OPERATION_ERROR_UNKNOWN, UserManager.USER_OPERATION_ERROR_MANAGED_PROFILE, UserManager.USER_OPERATION_ERROR_MAX_RUNNING_USERS, UserManager.USER_OPERATION_ERROR_CURRENT_USER, UserManager.USER_OPERATION_ERROR_LOW_STORAGE, UserManager.USER_OPERATION_ERROR_MAX_USERS, android.os.UserManager.USER_OPERATION_ERROR_USER_ACCOUNT_ALREADY_EXISTS, android.os.UserManager.USER_OPERATION_ERROR_DISABLED_USER, or android.os.UserManager.USER_OPERATION_ERROR_PRIVATE_PROFILE