Source code for gcloud.storage.exceptions
# TODO: Make these super useful.
[docs]class ConnectionError(StorageError):
def __init__(self, response, content):
message = str(response) + content
super(ConnectionError, self).__init__(message)
[docs]class NotFoundError(ConnectionError):
def __init__(self, response, content):
self.message = 'GET %s returned a 404.' % (response.url)