Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(274)

Unified Diff: client/third_party/google/auth/exceptions.py

Issue 2953253003: Replace custom blob gRPC API with ByteStream (Closed)
Patch Set: Import ndb directly to test code Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « client/third_party/google/auth/environment_vars.py ('k') | client/third_party/google/auth/iam.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/third_party/google/auth/exceptions.py
diff --git a/client/third_party/oauth2client/__init__.py b/client/third_party/google/auth/exceptions.py
similarity index 51%
copy from client/third_party/oauth2client/__init__.py
copy to client/third_party/google/auth/exceptions.py
index f7c36c1bff2e62aaa1a7ba247131dd07e1f81f3f..2be9fd6df4037a46b897dead1403808847e89e07 100644
--- a/client/third_party/oauth2client/__init__.py
+++ b/client/third_party/google/auth/exceptions.py
@@ -1,4 +1,4 @@
-# Copyright 2015 Google Inc. All rights reserved.
+# Copyright 2016 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -12,12 +12,21 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-"""Client library for using OAuth2, especially with Google APIs."""
+"""Exceptions used in the google.auth package."""
-__version__ = '1.5.2'
-GOOGLE_AUTH_URI = 'https://accounts.google.com/o/oauth2/auth'
-GOOGLE_DEVICE_URI = 'https://accounts.google.com/o/oauth2/device/code'
-GOOGLE_REVOKE_URI = 'https://accounts.google.com/o/oauth2/revoke'
-GOOGLE_TOKEN_URI = 'https://accounts.google.com/o/oauth2/token'
-GOOGLE_TOKEN_INFO_URI = 'https://www.googleapis.com/oauth2/v2/tokeninfo'
+class GoogleAuthError(Exception):
+ """Base class for all google.auth errors."""
+
+
+class TransportError(GoogleAuthError):
+ """Used to indicate an error occurred during an HTTP request."""
+
+
+class RefreshError(GoogleAuthError):
+ """Used to indicate that an refreshing the credentials' access token
+ failed."""
+
+
+class DefaultCredentialsError(GoogleAuthError):
+ """Used to indicate that acquiring default credentials failed."""
« no previous file with comments | « client/third_party/google/auth/environment_vars.py ('k') | client/third_party/google/auth/iam.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698