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):
5class GoogleNestException(Exception):
6    """Base class for all client exceptions."""

Base class for all client exceptions.

class SubscriberException(GoogleNestException):
 9class SubscriberException(GoogleNestException):
10    """Raised during problems subscribing to events and updates."""

Raised during problems subscribing to events and updates.

class SubscriberTimeoutException(SubscriberException):
13class SubscriberTimeoutException(SubscriberException):
14    """Raised when a subscriber operation times out."""

Raised when a subscriber operation times out.

class ApiException(GoogleNestException):
17class ApiException(GoogleNestException):
18    """Raised during problems talking to the API."""

Raised during problems talking to the API.

class ApiTimeoutException(ApiException):
21class ApiTimeoutException(ApiException):
22    """Raised when an API operation times out."""

Raised when an API operation times out.

class AuthException(ApiException):
25class AuthException(ApiException):
26    """Raised due to auth problems talking to API or subscriber."""

Raised due to auth problems talking to API or subscriber.

class NotFoundException(ApiException):
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.

class ApiForbiddenException(ApiException):
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.

class ConfigurationException(GoogleNestException):
37class ConfigurationException(GoogleNestException):
38    """Raised due to misconfiguration problems."""

Raised due to misconfiguration problems.

class DecodeException(GoogleNestException):
41class DecodeException(GoogleNestException):
42    """Raised when failing to decode a token."""

Raised when failing to decode a token.

class TranscodeException(GoogleNestException):
45class TranscodeException(GoogleNestException):
46    """Raised when failing to transcode media."""

Raised when failing to transcode media.