Skip to content

Exceptions

exceptions

Exceptions raised by aioteleco.

TelecoError

Bases: Exception

Base class for every SDK error.

TelecoConnectionError

Bases: TelecoError

The cloud or the box could not be reached.

TelecoAuthError

Bases: TelecoError

Login failed (wrong credentials, unconfirmed account...).

TelecoSessionExpiredError

Bases: TelecoError

The cloud session is no longer valid and re-login failed or is disabled.

TelecoApiError

TelecoApiError(
    message: str,
    *,
    code: str | None = None,
    payload: Any = None,
)

Bases: TelecoError

The cloud answered with an error envelope.

code instance-attribute

code = code

payload instance-attribute

payload = payload

TelecoCommandError

Bases: TelecoError

A command was rejected or could not be built.

TelecoAckTimeoutError

Bases: TelecoCommandError

The box did not confirm a command in time.

TelecoLocalError

Bases: TelecoConnectionError

The local (LAN) channel to the box failed.

TelecoUnsupportedError

Bases: TelecoError

The device does not support the requested action.