exceptions

Exceptions raised by the tl_elliptec library.

exception tl_elliptec.exceptions.ElliptecError[source]

Bases: Exception

Base class for all errors raised by this library.

exception tl_elliptec.exceptions.ElliptecTimeoutError[source]

Bases: ElliptecError

No reply (or an incomplete reply) was received within the allotted time.

exception tl_elliptec.exceptions.ElliptecProtocolError[source]

Bases: ElliptecError

A reply frame could not be parsed, or did not match what was expected.

exception tl_elliptec.exceptions.ElliptecStatusError(address, code)[source]

Bases: ElliptecError

The device replied with a GS/BS status frame indicating an error.

Parameters:
address

The address of the device that reported the error.

code

The raw numeric status code (see StatusCode).

status

code as a StatusCode, or None if it’s outside the known/reserved range.

exception tl_elliptec.exceptions.ElliptecUnsupportedError[source]

Bases: ElliptecError

The requested command is not supported by this device model.