IsolatedServiceException
class IsolatedServiceException : Exception
kotlin.Any | |||
↳ | kotlin.Throwable | ||
↳ | java.lang.Exception | ||
↳ | android.adservices.ondevicepersonalization.IsolatedServiceException |
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, it only logs and aggregates it.
Summary
Public constructors | |
---|---|
IsolatedServiceException(errorCode: Int) Creates an |
|
IsolatedServiceException(errorCode: Int, message: String?, cause: Throwable?) Creates an |
|
IsolatedServiceException(errorCode: Int, cause: Throwable?) Creates an |
Public methods | |
---|---|
Int |
Returns the error code for this exception. |
Public constructors
IsolatedServiceException
IsolatedServiceException(errorCode: Int)
Creates an IsolatedServiceException
with an error code to be logged. The meaning of the error code is defined by the IsolatedService
. The platform does not interpret the error code.
Parameters | |
---|---|
errorCode |
Int: An error code defined by the IsolatedService . |
IsolatedServiceException
IsolatedServiceException(
errorCode: Int,
message: String?,
cause: Throwable?)
Creates an IsolatedServiceException
with an error code to be logged. The meaning of the error code is defined by the IsolatedService
. The platform does not interpret the error code.
Parameters | |
---|---|
errorCode |
Int: An error code defined by the IsolatedService . |
message |
String?: the exception message. This value may be null . |
cause |
Throwable?: the cause of this exception. This value may be null . |
IsolatedServiceException
IsolatedServiceException(
errorCode: Int,
cause: Throwable?)
Creates an IsolatedServiceException
with an error code to be logged. The meaning of the error code is defined by the IsolatedService
. The platform does not interpret the error code.
Parameters | |
---|---|
errorCode |
Int: An error code defined by the IsolatedService . |
cause |
Throwable?: the cause of this exception. This value may be null . |
Public methods
getErrorCode
fun getErrorCode(): Int
Returns the error code for this exception.