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_ISOLATED_SERVICE_FAILED

The IsolatedService that was invoked failed to run.

int ERROR_PERSONALIZATION_DISABLED

The IsolatedService was not started because personalization is disabled by device configuration.

Public methods

int getErrorCode()

Returns the error code for this exception.

Inherited methods

Constants

ERROR_ISOLATED_SERVICE_FAILED

Added in API level 35
public static final int ERROR_ISOLATED_SERVICE_FAILED

The IsolatedService that was invoked failed to run.

Constant Value: 1 (0x00000001)

ERROR_PERSONALIZATION_DISABLED

Added in API level 35
public static final int ERROR_PERSONALIZATION_DISABLED

The IsolatedService was not started because personalization is disabled by device configuration.

Constant Value: 2 (0x00000002)

Public methods

getErrorCode

Added in API level 35
public int getErrorCode ()

Returns the error code for this exception.

Returns
int Value is ERROR_ISOLATED_SERVICE_FAILED, or ERROR_PERSONALIZATION_DISABLED