Skip to content

exceptions

Exceptions used by the library.

ConnectionError

Bases: Exception

Raised when connection to the device fails.

DeviceError

Bases: Exception

Raised when connected device returns an error.

Attributes:

  • error_code (int) –

    The error code returned by the device.

DeviceNotFound

Bases: Exception

Raised when device with specified short ID is not found.

HandshakeError

Bases: Exception

Raised when handshake with the device fails.