GetTopicsException

public class GetTopicsException
extends AdServicesException

java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ android.adservices.exceptions.AdServicesException
         ↳ android.adservices.exceptions.GetTopicsException


Exception thrown by Get Topics API.

Summary

Public constructors

GetTopicsException(int resultCode)

Initializes an GetTopicsException with no message.

GetTopicsException(int resultCode, String message)

Initializes an GetTopicsException with a result code and message.

GetTopicsException(int resultCode, String message, Throwable cause)

Initializes an GetTopicsException with a result code, message and cause.

Public methods

int getResultCode()

Returns the result code this exception was constructed with.

Inherited methods

Public constructors

GetTopicsException

public GetTopicsException (int resultCode)

Initializes an GetTopicsException with no message.

Parameters
resultCode int: The resultCode. Value is TopicsManager.RESULT_OK, TopicsManager.RESULT_INTERNAL_ERROR, TopicsManager.RESULT_INVALID_ARGUMENT, TopicsManager.RESULT_IO_ERROR, or TopicsManager.RESULT_RATE_LIMIT_REACHED

GetTopicsException

public GetTopicsException (int resultCode, 
                String message)

Initializes an GetTopicsException with a result code and message.

Parameters
resultCode int: The resultCode. Value is TopicsManager.RESULT_OK, TopicsManager.RESULT_INTERNAL_ERROR, TopicsManager.RESULT_INVALID_ARGUMENT, TopicsManager.RESULT_IO_ERROR, or TopicsManager.RESULT_RATE_LIMIT_REACHED

message String: The detail message (which is saved for later retrieval by the Throwable.getMessage() method). This value may be null.

GetTopicsException

public GetTopicsException (int resultCode, 
                String message, 
                Throwable cause)

Initializes an GetTopicsException with a result code, message and cause.

Parameters
resultCode int: The resultCode. Value is TopicsManager.RESULT_OK, TopicsManager.RESULT_INTERNAL_ERROR, TopicsManager.RESULT_INVALID_ARGUMENT, TopicsManager.RESULT_IO_ERROR, or TopicsManager.RESULT_RATE_LIMIT_REACHED

message String: The detail message (which is saved for later retrieval by the Throwable.getMessage() method). This value may be null.

cause Throwable: The cause (which is saved for later retrieval by the Throwable.getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)

Public methods

getResultCode

public int getResultCode ()

Returns the result code this exception was constructed with.

Returns
int The resultCode. Value is TopicsManager.RESULT_OK, TopicsManager.RESULT_INTERNAL_ERROR, TopicsManager.RESULT_INVALID_ARGUMENT, TopicsManager.RESULT_IO_ERROR, or TopicsManager.RESULT_RATE_LIMIT_REACHED