DpcMigrationException

public sealed class DpcMigrationException extends Exception

Known direct subclasses
DpcMigrationAccessWifiStatePermissionMissingException

The DPC does not have android.Manifest.permission.ACCESS_WIFI_STATE permission required for Android 12.

DpcMigrationAndroidDevicePolicyNotInstalledException

Android Device Policy is not installed.

DpcMigrationApiLevelException

The API level of the device is too low.

DpcMigrationAwaitingMigrationException

A migration is already in progress and another migration was attempted with a different migration token.

DpcMigrationDeviceIdMismatchException

The management token is meant for a different device.

DpcMigrationDpcPackageNameMismatchException

The package name of the DPC does not match the records in Play.

DpcMigrationDpcPackageSignatureMismatchException

The DPC package signature does not match the records in Play.

DpcMigrationInternalException

Dpc migration related call to Android Management API has failed.

DpcMigrationManagedAccountException

There was an error in verifying the Managed Google Play account on the device

DpcMigrationManagementModeMismatchException

The management mode of the device does not match what is specified in the migration token.

DpcMigrationTokenExpiredException

The migration token has expired.

DpcMigrationTokenParseException

The migration token could not be parsed.

DpcMigrationTokenSignatureException

The migration token is not signed by Google.

DpcMigrationUnknownException

DpcMigrationException for unknown errors.

DpcMigrationWifiRemovalRequestedOnCompanyOwnedDeviceException

Removing Wi-Fi networks must not be requested in DpcMigrationRequest on company-owned devices.


Thrown when a dpc migration related call to Android Management API failed.

Summary

Protected constructors

Protected constructors

DpcMigrationException

protected DpcMigrationException(@NonNull Exception exception)

DpcMigrationException

protected DpcMigrationException(String message, Throwable cause)