Added in API level 35
Deprecated in API level 37

IsolatedServiceException


public final class IsolatedServiceException
extends Exception

java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ android.adservices.ondevicepersonalization.IsolatedServiceException


This class was deprecated in API level 37.
The ODP APIs are deprecated and will not be supported in future Android releases. There is no direct replacement API available. Developers currently integrated with these APIs must cease further integration efforts. For comprehensive details regarding this deprecation and the future roadmap of Privacy Sandbox on Android, please consult the official Privacy Sandbox developer documentation and announcements: https://privacysandbox.google.com

A class that an IsolatedService can use to signal a failure in handling a request and return an error to be logged and aggregated. The error is not reported to the app that invoked the IsolatedService in order to prevent data leakage from the IsolatedService to an app. The platform does not interpret the error code,