Module exceptions (3.1.1)

Exceptions raised by the library.

Classes

InvalidResponse

InvalidResponse(response, *args)

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

Parameters
Name Description
response object

The HTTP response which caused the failure.

args tuple

The positional arguments typically passed to an exception class.

DataCorruption

DataCorruption(response, *args)

Error class for corrupt media transfers.

Parameters
Name Description
response object

The HTTP response which caused the failure.

args tuple

The positional arguments typically passed to an exception class.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月10日 UTC.