OnDevicePersonalizationException
public
class
OnDevicePersonalizationException
extends Exception
java.lang.Object | |||
↳ | java.lang.Throwable | ||
↳ | java.lang.Exception | ||
↳ | android.adservices.ondevicepersonalization.OnDevicePersonalizationException |
Exception thrown by OnDevicePersonalization APIs.
Summary
Constants | |
---|---|
int |
ERROR_INFERENCE_FAILED
|
int |
ERROR_INFERENCE_MODEL_NOT_FOUND
Inference failed due to |
int |
ERROR_INVALID_TRAINING_MANIFEST
The |
int |
ERROR_ISOLATED_SERVICE_FAILED
The |
int |
ERROR_ISOLATED_SERVICE_LOADING_FAILED
The ODP module was unable to load the |
int |
ERROR_ISOLATED_SERVICE_MANIFEST_PARSING_FAILED
The ODP specific manifest settings for the |
int |
ERROR_ISOLATED_SERVICE_TIMEOUT
The |
int |
ERROR_PERSONALIZATION_DISABLED
The |
int |
ERROR_SCHEDULE_TRAINING_FAILED
The |
Public methods | |
---|---|
int
|
getErrorCode()
Returns the error code for this exception. |
Inherited methods | |
---|---|
Constants
ERROR_INFERENCE_FAILED
public static final int ERROR_INFERENCE_FAILED
ModelManager
failed to run inference.
Retrying may be successful if the issue is due to a platform internal error.
Constant Value: 9 (0x00000009)
ERROR_INFERENCE_MODEL_NOT_FOUND
public static final int ERROR_INFERENCE_MODEL_NOT_FOUND
Inference failed due to ModelManager
not finding the downloaded model.
Constant Value: 8 (0x00000008)
ERROR_INVALID_TRAINING_MANIFEST
public static final int ERROR_INVALID_TRAINING_MANIFEST
The IsolatedService
's call to FederatedComputeScheduler.schedule
failed due
to missing or misconfigured federated compute settings URL in the manifest.
Constant Value: 7 (0x00000007)
ERROR_ISOLATED_SERVICE_FAILED
public static final int ERROR_ISOLATED_SERVICE_FAILED
The IsolatedService
that was invoked failed to run.
Constant Value: 1 (0x00000001)
ERROR_ISOLATED_SERVICE_LOADING_FAILED
public static final int ERROR_ISOLATED_SERVICE_LOADING_FAILED
The ODP module was unable to load the IsolatedService
.
Retrying may be successful for platform internal errors.
Constant Value: 3 (0x00000003)
ERROR_ISOLATED_SERVICE_MANIFEST_PARSING_FAILED
public static final int ERROR_ISOLATED_SERVICE_MANIFEST_PARSING_FAILED
The ODP specific manifest settings for the IsolatedService
are either missing or
misconfigured.
Constant Value: 4 (0x00000004)
ERROR_ISOLATED_SERVICE_TIMEOUT
public static final int ERROR_ISOLATED_SERVICE_TIMEOUT
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.
Constant Value: 5 (0x00000005)
ERROR_PERSONALIZATION_DISABLED
public static final int ERROR_PERSONALIZATION_DISABLED
The IsolatedService
was not started because personalization is disabled by
device configuration.
Constant Value: 2 (0x00000002)
ERROR_SCHEDULE_TRAINING_FAILED
public static final int ERROR_SCHEDULE_TRAINING_FAILED
The IsolatedService
's call to FederatedComputeScheduler.schedule
failed.
Retrying may be successful if the issue is due to a platform internal error.
Constant Value: 6 (0x00000006)
Public methods
getErrorCode
public int getErrorCode ()
Returns the error code for this exception.