OnDevicePersonalizationException
open class OnDevicePersonalizationException : Exception
kotlin.Any | |||
↳ | kotlin.Throwable | ||
↳ | java.lang.Exception | ||
↳ | android.adservices.ondevicepersonalization.OnDevicePersonalizationException |
Exception thrown by OnDevicePersonalization APIs.
Summary
Constants | |
---|---|
static Int |
|
static Int |
Inference failed due to |
static Int |
The |
static Int |
The |
static Int |
The ODP module was unable to load the |
static Int |
The ODP specific manifest settings for the |
static Int |
The |
static Int |
The |
static Int |
The |
Public methods | |
---|---|
open Int |
Returns the error code for this exception. |
Constants
ERROR_INFERENCE_FAILED
static val ERROR_INFERENCE_FAILED: Int
ModelManager
failed to run inference.
Retrying may be successful if the issue is due to a platform internal error.
Value: 9
ERROR_INFERENCE_MODEL_NOT_FOUND
static val ERROR_INFERENCE_MODEL_NOT_FOUND: Int
Inference failed due to ModelManager
not finding the downloaded model.
Value: 8
ERROR_INVALID_TRAINING_MANIFEST
static val ERROR_INVALID_TRAINING_MANIFEST: Int
The IsolatedService
's call to FederatedComputeScheduler.schedule
failed due to missing or misconfigured federated compute settings URL in the manifest.
Value: 7
ERROR_ISOLATED_SERVICE_FAILED
static val ERROR_ISOLATED_SERVICE_FAILED: Int
The IsolatedService
that was invoked failed to run.
Value: 1
ERROR_ISOLATED_SERVICE_LOADING_FAILED
static val ERROR_ISOLATED_SERVICE_LOADING_FAILED: Int
The ODP module was unable to load the IsolatedService
.
Retrying may be successful for platform internal errors.
Value: 3
ERROR_ISOLATED_SERVICE_MANIFEST_PARSING_FAILED
static val ERROR_ISOLATED_SERVICE_MANIFEST_PARSING_FAILED: Int
The ODP specific manifest settings for the IsolatedService
are either missing or misconfigured.
Value: 4
ERROR_ISOLATED_SERVICE_TIMEOUT
static val ERROR_ISOLATED_SERVICE_TIMEOUT: Int
The IsolatedService
was invoked but timed out before returning successfully.
This is likely due to an issue with the IsolatedWorker
implementation taking too long and retries are likely to fail.
Value: 5
ERROR_PERSONALIZATION_DISABLED
static val ERROR_PERSONALIZATION_DISABLED: Int
The IsolatedService
was not started because personalization is disabled by device configuration.
Value: 2
ERROR_SCHEDULE_TRAINING_FAILED
static val ERROR_SCHEDULE_TRAINING_FAILED: Int
The IsolatedService
's call to FederatedComputeScheduler.schedule
failed.
Retrying may be successful if the issue is due to a platform internal error.
Value: 6
Public methods
getErrorCode
open fun getErrorCode(): Int
Returns the error code for this exception.