diff options
Diffstat (limited to '')
-rw-r--r-- | freestyle_hid/_exceptions.py | 8 |
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.""" |