object DpcMigrationDeviceIdMismatchException : DpcMigrationException
The management token is meant for a different device.
Summary
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-02-23 UTC.
[null,null,["Last updated 2025-02-23 UTC."],[[["`DpcMigrationDeviceIdMismatchException` signals that a management token is intended for a different device than the one it's being used with."],["This exception is a subclass of `DpcMigrationException`, indicating an issue during device policy controller (DPC) migration."],["It's part of the Android Management API and provides specific error handling for device ID mismatches in DPC migrations."]]],["`DpcMigrationDeviceIdMismatchException` is a Kotlin object that extends `DpcMigrationException`. This exception occurs when a management token is used with a device different from the one it was intended for. It inherits functions from `kotlin.Throwable`, allowing for stack trace management, adding/getting suppressed exceptions, and managing the cause of the exception, as well as having properties like cause and message. The key action is raising the exception when the device ID doesn't match the token's intended device.\n"]]