Added in API level 28
UserOperationException
open class UserOperationException : RuntimeException
kotlin.Any | ||||
↳ | kotlin.Throwable | |||
↳ | java.lang.Exception | |||
↳ | java.lang.RuntimeException | |||
↳ | android.os.UserManager.UserOperationException |
Thrown to indicate user operation failed.
Summary
Public methods | |
---|---|
open Int |
Returns the operation result code. |
Public methods
getUserOperationResult
Added in API level 28
open fun getUserOperationResult(): Int
Returns the operation result code.
Return | |
---|---|
Int |
Value is android.os.UserManager#USER_OPERATION_SUCCESS , android.os.UserManager#USER_OPERATION_ERROR_UNKNOWN , android.os.UserManager#USER_OPERATION_ERROR_MANAGED_PROFILE , android.os.UserManager#USER_OPERATION_ERROR_MAX_RUNNING_USERS , android.os.UserManager#USER_OPERATION_ERROR_CURRENT_USER , android.os.UserManager#USER_OPERATION_ERROR_LOW_STORAGE , android.os.UserManager#USER_OPERATION_ERROR_MAX_USERS , android.os.UserManager.USER_OPERATION_ERROR_USER_ACCOUNT_ALREADY_EXISTS, android.os.UserManager.USER_OPERATION_ERROR_DISABLED_USER, android.os.UserManager.USER_OPERATION_ERROR_PRIVATE_PROFILE, or android.os.UserManager.USER_OPERATION_ERROR_USER_RESTRICTED |