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 constructors | |
|---|---|
OnDevicePersonalizationException(errorCode: Int) |
|
OnDevicePersonalizationException(errorCode: Int, message: String?) |
|
OnDevicePersonalizationException(errorCode: Int, message: String?, cause: Throwable?) |
|
OnDevicePersonalizationException(errorCode: Int, cause: Throwable?) |
|
| 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: 9ERROR_INFERENCE_MODEL_NOT_FOUND
static val ERROR_INFERENCE_MODEL_NOT_FOUND: Int
Inference failed due to ModelManager not finding the downloaded model.
Value: 8ERROR_INVALID_TRAINING_MANIFEST
static val ERROR_INVALID_TRAINING_MANIFEST: Int
The IsolatedService's call to android.adservices.ondevicepersonalization.FederatedComputeScheduler#schedule failed due to missing or misconfigured federated compute settings URL in the manifest.
Value: 7ERROR_ISOLATED_SERVICE_FAILED
static val ERROR_ISOLATED_SERVICE_FAILED: Int
The IsolatedService that was invoked failed to run.
Value: 1ERROR_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: 3ERROR_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: 4ERROR_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: 5ERROR_PERSONALIZATION_DISABLED
static val ERROR_PERSONALIZATION_DISABLED: Int
The IsolatedService was not started because personalization is disabled by device configuration.
Value: 2ERROR_SCHEDULE_TRAINING_FAILED
static val ERROR_SCHEDULE_TRAINING_FAILED: Int
The IsolatedService's call to android.adservices.ondevicepersonalization.FederatedComputeScheduler#schedule failed.
Retrying may be successful if the issue is due to a platform internal error.
Value: 6Public constructors
OnDevicePersonalizationException
OnDevicePersonalizationException(errorCode: Int)
OnDevicePersonalizationException
OnDevicePersonalizationException(
errorCode: Int,
message: String?)
OnDevicePersonalizationException
OnDevicePersonalizationException(
errorCode: Int,
message: String?,
cause: Throwable?)
OnDevicePersonalizationException
OnDevicePersonalizationException(
errorCode: Int,
cause: Throwable?)
Public methods
getErrorCode
open fun getErrorCode(): Int
Returns the error code for this exception.