google_nest_sdm.exceptions
Library for exceptions using the Google Nest SDM API and subscriber.
1"""Library for exceptions using the Google Nest SDM API and subscriber.""" 2 3 4class GoogleNestException(Exception): 5 """Base class for all client exceptions.""" 6 7 8class SubscriberException(GoogleNestException): 9 """Raised during problems subscribing to events and updates.""" 10 11 12class SubscriberTimeoutException(SubscriberException): 13 """Raised when a subscriber operation times out.""" 14 15 16class ApiException(GoogleNestException): 17 """Raised during problems talking to the API.""" 18 19 20class ApiTimeoutException(ApiException): 21 """Raised when an API operation times out.""" 22 23 24class AuthException(ApiException): 25 """Raised due to auth problems talking to API or subscriber.""" 26 27 28class NotFoundException(ApiException): 29 """Raised when the API returns an error that a resource was not found.""" 30 31 32class ApiForbiddenException(ApiException): 33 """Raised when the user is not authorized to perform a specific function.""" 34 35 36class ConfigurationException(GoogleNestException): 37 """Raised due to misconfiguration problems.""" 38 39 40class DecodeException(GoogleNestException): 41 """Raised when failing to decode a token.""" 42 43 44class TranscodeException(GoogleNestException): 45 """Raised when failing to transcode media."""
class
GoogleNestException(builtins.Exception):
Base class for all client exceptions.
9class SubscriberException(GoogleNestException): 10 """Raised during problems subscribing to events and updates."""
Raised during problems subscribing to events and updates.
13class SubscriberTimeoutException(SubscriberException): 14 """Raised when a subscriber operation times out."""
Raised when a subscriber operation times out.
Raised during problems talking to the API.
Raised when an API operation times out.
25class AuthException(ApiException): 26 """Raised due to auth problems talking to API or subscriber."""
Raised due to auth problems talking to API or subscriber.
29class NotFoundException(ApiException): 30 """Raised when the API returns an error that a resource was not found."""
Raised when the API returns an error that a resource was not found.
33class ApiForbiddenException(ApiException): 34 """Raised when the user is not authorized to perform a specific function."""
Raised when the user is not authorized to perform a specific function.
37class ConfigurationException(GoogleNestException): 38 """Raised due to misconfiguration problems."""
Raised due to misconfiguration problems.
Raised when failing to decode a token.
Raised when failing to transcode media.