| Index: google_apis/drive/drive_api_error_codes.h
|
| diff --git a/google_apis/drive/gdata_errorcode.h b/google_apis/drive/drive_api_error_codes.h
|
| similarity index 59%
|
| rename from google_apis/drive/gdata_errorcode.h
|
| rename to google_apis/drive/drive_api_error_codes.h
|
| index a275cb39164d89be4fe7d02da09db92fad853a38..af4f502b39f1866c26a26ab2a18a21e9faec3e2a 100644
|
| --- a/google_apis/drive/gdata_errorcode.h
|
| +++ b/google_apis/drive/drive_api_error_codes.h
|
| @@ -2,15 +2,15 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#ifndef GOOGLE_APIS_DRIVE_GDATA_ERRORCODE_H_
|
| -#define GOOGLE_APIS_DRIVE_GDATA_ERRORCODE_H_
|
| +#ifndef GOOGLE_APIS_DRIVE_DRIVE_API_ERROR_CODES_H_
|
| +#define GOOGLE_APIS_DRIVE_DRIVE_API_ERROR_CODES_H_
|
|
|
| #include <string>
|
|
|
| namespace google_apis {
|
|
|
| -// HTTP errors that can be returned by GData service.
|
| -enum GDataErrorCode {
|
| +// HTTP errors that can be returned by Drive API service.
|
| +enum DriveApiErrorCode {
|
| HTTP_SUCCESS = 200,
|
| HTTP_CREATED = 201,
|
| HTTP_NO_CONTENT = 204,
|
| @@ -29,18 +29,18 @@ enum GDataErrorCode {
|
| HTTP_NOT_IMPLEMENTED = 501,
|
| HTTP_BAD_GATEWAY = 502,
|
| HTTP_SERVICE_UNAVAILABLE = 503,
|
| - GDATA_PARSE_ERROR = -100,
|
| - GDATA_FILE_ERROR = -101,
|
| - GDATA_CANCELLED = -102,
|
| - GDATA_OTHER_ERROR = -103,
|
| - GDATA_NO_CONNECTION = -104,
|
| - GDATA_NOT_READY = -105,
|
| - GDATA_NO_SPACE = -106,
|
| + DRIVE_PARSE_ERROR = -100,
|
| + DRIVE_FILE_ERROR = -101,
|
| + DRIVE_CANCELLED = -102,
|
| + DRIVE_OTHER_ERROR = -103,
|
| + DRIVE_NO_CONNECTION = -104,
|
| + DRIVE_NOT_READY = -105,
|
| + DRIVE_NO_SPACE = -106,
|
| };
|
|
|
| -// Returns a string representation of GDataErrorCode.
|
| -std::string GDataErrorCodeToString(GDataErrorCode error);
|
| +// Returns a string representation of DriveApiErrorCode.
|
| +std::string DriveApiErrorCodeToString(DriveApiErrorCode error);
|
|
|
| } // namespace google_apis
|
|
|
| -#endif // GOOGLE_APIS_DRIVE_GDATA_ERRORCODE_H_
|
| +#endif // GOOGLE_APIS_DRIVE_DRIVE_API_ERROR_CODES_H_
|
|
|