Places API specific status codes, for use in Status.getStatusCode()
.
Constant Summary
int | INVALID_REQUEST | Operation failed due to an invalid request. |
int | NOT_FOUND | Operation failed due to no results being found by the server. |
int | OVER_QUERY_LIMIT | Operation failed due to exceeding the query limits. |
int | REQUEST_DENIED | Operation failed due to authorization issues. |
Inherited Constant Summary
Public Constructor Summary
Public Method Summary
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 Method Summary
Constants
public static final int INVALID_REQUEST
Operation failed due to an invalid request.
public static final int NOT_FOUND
Operation failed due to no results being found by the server.
public static final int OVER_QUERY_LIMIT
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 quota limits for a given API. See the FAQs for information about resolving this error.
public static final int REQUEST_DENIED
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
public PlacesStatusCodes ()
Public Methods
public static String getStatusCodeString (int statusCode)
Returns an untranslated debug string (not user-friendly!) based on the provided status code.
Parameters
statusCode |
---|
public static boolean isError (int statusCode)
Returns whether the given status code is identified as an error.
Parameters
statusCode |
---|