PlacesStatusCodes

public final class PlacesStatusCodes extends CommonStatusCodes


Places API specific status codes, for use in getStatusCode.

Summary

Constants

static final int

Operation failed due to an invalid request.

static final int
NOT_FOUND = 9013

Operation failed due to no results being found by the server.

static final int

Operation failed due to exceeding the query limits.

static final int

Operation failed due to authorization issues.

Public constructors

Public methods

static String
getStatusCodeString(int statusCode)

Returns an untranslated debug string (not user-friendly!) based on the provided status code.

static boolean
isError(int statusCode)

Returns whether the given status code is identified as an error.

Inherited Constants

From com.google.android.gms.common.api.CommonStatusCodes
static final int
static final int
static final int
static final int
static final int
static final int
ERROR = 13
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int

This field is deprecated.

static final int

This field is deprecated.

static final int
static final int
static final int
static final int
TIMEOUT = 15

Inherited methods

From com.google.android.gms.common.api.CommonStatusCodes
static String
getStatusCodeString(int statusCode)

Constants

INVALID_REQUEST

public static final int INVALID_REQUEST = 9012

Operation failed due to an invalid request.

NOT_FOUND

public static final int NOT_FOUND = 9013

Operation failed due to no results being found by the server.

OVER_QUERY_LIMIT

public static final int OVER_QUERY_LIMIT = 9010

Operation failed due to exceeding the query limits.

Verify that the billing is enabled and the provided method of payment is valid. Otherwise, you may have exceeded the QPS limits for a given API. See the FAQs for information about resolving this error.

REQUEST_DENIED

public static final int REQUEST_DENIED = 9011

Operation failed due to authorization issues.

Check that the API key is set, not expired, and configured with the correct key restrictions. See the developer's guide for information on creating and using an API key.

Public constructors

PlacesStatusCodes

public PlacesStatusCodes()

Public methods

getStatusCodeString

public static String getStatusCodeString(int statusCode)

Returns an untranslated debug string (not user-friendly!) based on the provided status code.

isError

public static boolean isError(int statusCode)

Returns whether the given status code is identified as an error.