IsolatedServiceException
  public
  
  final
  
  class
  IsolatedServiceException
  
  
  
  
  
  
  
    extends Exception
  
  
  
  
  
  
| java.lang.Object | |||
| ↳ | java.lang.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(int errorCode)
      
      
        Creates an   | 
  |
      
      IsolatedServiceException(int errorCode, String message, Throwable cause)
      
      
        Creates an   | 
  |
      
      IsolatedServiceException(int errorCode, Throwable cause)
      
      
        Creates an   | 
  |
Public methods | |
|---|---|
        
        
        
        
        
        int
     | 
  
    
      
      getErrorCode()
      
      
        Returns the error code for this exception.  | 
  
Inherited methods | |
|---|---|
Public constructors
IsolatedServiceException
public IsolatedServiceException (int errorCode)
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
public IsolatedServiceException (int errorCode, 
                String message, 
                Throwable cause)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
public IsolatedServiceException (int errorCode, 
                Throwable cause)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
public int getErrorCode ()
Returns the error code for this exception.
| Returns | |
|---|---|
int | 
        |