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."],[[["`DpcMigrationTokenExpiredException` signals that the token used for device policy controller (DPC) migration is no longer valid."],["It's a subclass of `DpcMigrationException` and ultimately inherits from `java.lang.Exception`."],["This exception typically arises during DPC migration when the provided token has exceeded its allowed timeframe."],["Developers should handle this exception by prompting the user to initiate the migration process again, generating a fresh token."]]],["`DpcMigrationTokenExpiredException` is a Kotlin object, a type of `DpcMigrationException`, that signals an expired migration token. This exception inherits from `Throwable` and `Exception`. Key actions associated with this object involve methods inherited from `Throwable`, such as `addSuppressed`, `fillInStackTrace`, `getStackTrace`, and various `printStackTrace` methods for debugging. Properties it inherits include the `cause` and `message` of the exception. It signifies that a DPC migration token used in Android Management API has passed its validity.\n"]]