[libgdata/657539-tasks-tests: 16/19] core: Add an error code in GDataServiceError for exceeding the API quota



commit 517b6b44509a8e76ddb95ee1ce40bee21c7ad544
Author: Philip Withnall <philip tecnocode co uk>
Date:   Sun Aug 31 01:01:57 2014 +0100

    core: Add an error code in GDataServiceError for exceeding the API quota
    
    This adds API:
     • GDATA_SERVICE_ERROR_API_QUOTA_EXCEEDED

 gdata/gdata-service.h |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/gdata/gdata-service.h b/gdata/gdata-service.h
index 4bfb1c1..1d536f9 100644
--- a/gdata/gdata-service.h
+++ b/gdata/gdata-service.h
@@ -70,6 +70,9 @@ typedef enum {
  * @GDATA_SERVICE_ERROR_NETWORK_ERROR: The service is unavailable due to local network errors (e.g. no 
Internet connection)
  * @GDATA_SERVICE_ERROR_PROXY_ERROR: The service is unavailable due to proxy network errors (e.g. proxy 
unreachable)
  * @GDATA_SERVICE_ERROR_WITH_BATCH_OPERATION: Generic error when running a batch operation and the whole 
operation fails
+ * @GDATA_SERVICE_ERROR_API_QUOTA_EXCEEDED: The API request quota for this
+ * developer account has been exceeded for the current time period (e.g. day).
+ * Try again later. (Since: UNRELEASED.)
  *
  * Error codes for #GDataService operations.
  **/
@@ -84,7 +87,8 @@ typedef enum {
        GDATA_SERVICE_ERROR_BAD_QUERY_PARAMETER,
        GDATA_SERVICE_ERROR_NETWORK_ERROR,
        GDATA_SERVICE_ERROR_PROXY_ERROR,
-       GDATA_SERVICE_ERROR_WITH_BATCH_OPERATION
+       GDATA_SERVICE_ERROR_WITH_BATCH_OPERATION,
+       GDATA_SERVICE_ERROR_API_QUOTA_EXCEEDED,
 } GDataServiceError;
 
 /**


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]