As of January 1, 2020 this library no longer supports Python 2 on the latest released version. Library versions released prior to that date will continue to be available. For more information please visit Python 2 support on Google Cloud.

Exceptions

Exceptions raised by the library.

exception google.cloud.storage.exceptions.InvalidResponse(response, *args)[source]

Error class for responses which are not in the correct state.

Parameters
  • response (object) – The HTTP response which caused the failure.

  • args (tuple) – The positional arguments typically passed to an exception class.

response

The HTTP response object that caused the failure.

Type

object

exception google.cloud.storage.exceptions.DataCorruption(response, *args)[source]

Error class for corrupt media transfers.

Parameters
  • response (object) – The HTTP response which caused the failure.

  • args (tuple) – The positional arguments typically passed to an exception class.

response

The HTTP response object that caused the failure.

Type

object