OnDevicePersonalizationException
open classOnDevicePersonalizationException: 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 valERROR_INFERENCE_FAILED: Int
Deprecated: Deprecated in Java.
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 valERROR_INFERENCE_MODEL_NOT_FOUND: Int
Deprecated: Deprecated in Java.
Inference failed due to ModelManager not finding the downloaded model.
Value: 8ERROR_INVALID_TRAINING_MANIFEST
static valERROR_INVALID_TRAINING_MANIFEST: Int
Deprecated: Deprecated in Java.
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 valERROR_ISOLATED_SERVICE_FAILED: Int
Deprecated: Deprecated in Java.
The IsolatedService that was invoked failed to run.
Value: 1ERROR_ISOLATED_SERVICE_LOADING_FAILED
static valERROR_ISOLATED_SERVICE_LOADING_FAILED: Int
Deprecated: Deprecated in Java.
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 valERROR_ISOLATED_SERVICE_MANIFEST_PARSING_FAILED: Int
Deprecated: Deprecated in Java.
The ODP specific manifest settings for the IsolatedService are either missing or misconfigured.
Value: 4ERROR_ISOLATED_SERVICE_TIMEOUT
static valERROR_ISOLATED_SERVICE_TIMEOUT: Int
Deprecated: Deprecated in Java.
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 valERROR_PERSONALIZATION_DISABLED: Int
Deprecated: Deprecated in Java.
The IsolatedService was not started because personalization is disabled by device configuration.
Value: 2ERROR_SCHEDULE_TRAINING_FAILED
static valERROR_SCHEDULE_TRAINING_FAILED: Int
Deprecated: Deprecated in Java.
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)
| Parameters | |
|---|---|
errorCode |
Int: Value is one of the following: |
OnDevicePersonalizationException
OnDevicePersonalizationException(
errorCode: Int,
message: String?)
| Parameters | |
|---|---|
errorCode |
Int: Value is one of the following: |
message |
String?: This value may be null. |
OnDevicePersonalizationException
OnDevicePersonalizationException(
errorCode: Int,
message: String?,
cause: Throwable?)
| Parameters | |
|---|---|
errorCode |
Int: Value is one of the following: |
message |
String?: This value may be null. |
cause |
Throwable?: This value may be null. |
OnDevicePersonalizationException
OnDevicePersonalizationException(
errorCode: Int,
cause: Throwable?)
| Parameters | |
|---|---|
errorCode |
Int: Value is one of the following: |
cause |
Throwable?: This value may be null. |
Public methods
getErrorCode
open fungetErrorCode(): Int
Deprecated: Deprecated in Java.
Returns the error code for this exception.
| Return | |
|---|---|
Int |
Value is one of the following: |