Errors

wyze_sdk.errors

exception wyze_sdk.errors.WyzeApiError(message, response)

Bases: wyze_sdk.errors.WyzeClientError

Error raised when Wyze does not send the expected response.

Note

The message (str) passed into the exception is used when a user converts the exception to a str. i.e. str(WyzeApiError("This text will be sent as a string."))

response

The WyzeResponse object containing all of the data sent back from the API

exception wyze_sdk.errors.WyzeClientConfigurationError

Bases: wyze_sdk.errors.WyzeClientError

Error raised when attempting to send messages over the websocket when the connection is closed.

exception wyze_sdk.errors.WyzeClientError

Bases: Exception

Base class for Client errors

exception wyze_sdk.errors.WyzeClientNotConnectedError

Bases: wyze_sdk.errors.WyzeClientError

Error raised when attempting to send messages over the websocket when the connection is closed.

exception wyze_sdk.errors.WyzeFeatureNotSupportedError(action: str)

Bases: wyze_sdk.errors.WyzeRequestError

Error raised when the requested action on a device isn’t supported.

exception wyze_sdk.errors.WyzeObjectFormationError

Bases: wyze_sdk.errors.WyzeClientError

Error raised when a constructed object is not valid/malformed

exception wyze_sdk.errors.WyzeRequestError

Bases: wyze_sdk.errors.WyzeClientError

Error raised when there’s a problem with the request that’s being submitted.