summaryrefslogtreecommitdiffstats
path: root/freestyle_hid/_exceptions.py
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@flameeyes.com>2023-08-03 01:38:53 +0200
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2023-08-03 10:59:53 +0200
commit4d3c59f2b5bf1e3afc620b12370be16db36a3688 (patch)
tree3a6143aa4b8d07fe9fa845f242392c1138d6ad8a /freestyle_hid/_exceptions.py
parentDon't depend on product ID to enable encrypted protocol. (diff)
downloadfreestyle-hid-4d3c59f2b5bf1e3afc620b12370be16db36a3688.tar
freestyle-hid-4d3c59f2b5bf1e3afc620b12370be16db36a3688.tar.gz
freestyle-hid-4d3c59f2b5bf1e3afc620b12370be16db36a3688.tar.bz2
freestyle-hid-4d3c59f2b5bf1e3afc620b12370be16db36a3688.tar.lz
freestyle-hid-4d3c59f2b5bf1e3afc620b12370be16db36a3688.tar.xz
freestyle-hid-4d3c59f2b5bf1e3afc620b12370be16db36a3688.tar.zst
freestyle-hid-4d3c59f2b5bf1e3afc620b12370be16db36a3688.zip
Diffstat (limited to 'freestyle_hid/_exceptions.py')
-rw-r--r--freestyle_hid/_exceptions.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/freestyle_hid/_exceptions.py b/freestyle_hid/_exceptions.py
index 2b803f8..aa71e7c 100644
--- a/freestyle_hid/_exceptions.py
+++ b/freestyle_hid/_exceptions.py
@@ -10,6 +10,10 @@ class ConnectionError(Exception):
"""Errors related to Session establishment."""
+class EncryptionHandshakeError(ConnectionError):
+ """Errors related to encryption handshake."""
+
+
class ChecksumError(Exception):
"""Errors related to the transmission checksums."""
@@ -18,6 +22,10 @@ class CommandError(Exception):
"""Errors related to the command stream."""
+class EncryptionNotInitialized(CommandError):
+ """Device needs encryption handshake."""
+
+
class MissingFreeStyleKeys(Exception):
"""The freestyle-hid-keys package is missing."""