UpdateControlStateRequiredException

public final class UpdateControlStateRequiredException extends OemSystemUpdateException


Thrown when an API is called that requires UnifiedUpdateControl to be active, but it is not.

Summary

Public constructors

UpdateControlStateRequiredException(
    @NonNull String currentState,
    Throwable cause
)

Public methods

final @NonNull String

The current UpdateControlState of the device.

Public constructors

UpdateControlStateRequiredException

public UpdateControlStateRequiredException(
    @NonNull String currentState,
    Throwable cause
)
Parameters
@NonNull String currentState

The current UpdateControlState of the device.

Throwable cause

The underlying cause of the exception.

Public methods

getCurrentState

public final @NonNull String getCurrentState()

The current UpdateControlState of the device.