google.resumable_media.exceptions module

Custom exception types upload and downloads.

exception google.resumable_media.exceptions.InvalidResponse(response, *args)

Bases: Exception

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.
args
response = None

object – The HTTP response object that caused the failure.

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.