diff options
author | Diego Elio Pettenò <flameeyes@flameeyes.com> | 2020-10-04 16:08:43 +0200 |
---|---|---|
committer | Diego Elio Pettenò <flameeyes@flameeyes.com> | 2020-10-04 16:08:43 +0200 |
commit | f745ce94f71c16927b7ddb91986d6c026c21e7ba (patch) | |
tree | 8201a1fb93c81d89407cdbfc022e0c3654c38357 /freestyle_hid/_exceptions.py | |
download | freestyle-hid-f745ce94f71c16927b7ddb91986d6c026c21e7ba.tar freestyle-hid-f745ce94f71c16927b7ddb91986d6c026c21e7ba.tar.gz freestyle-hid-f745ce94f71c16927b7ddb91986d6c026c21e7ba.tar.bz2 freestyle-hid-f745ce94f71c16927b7ddb91986d6c026c21e7ba.tar.lz freestyle-hid-f745ce94f71c16927b7ddb91986d6c026c21e7ba.tar.xz freestyle-hid-f745ce94f71c16927b7ddb91986d6c026c21e7ba.tar.zst freestyle-hid-f745ce94f71c16927b7ddb91986d6c026c21e7ba.zip |
Diffstat (limited to 'freestyle_hid/_exceptions.py')
-rw-r--r-- | freestyle_hid/_exceptions.py | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/freestyle_hid/_exceptions.py b/freestyle_hid/_exceptions.py new file mode 100644 index 0000000..38a822d --- /dev/null +++ b/freestyle_hid/_exceptions.py @@ -0,0 +1,18 @@ +# SPDX-FileCopyrightText: © 2020 The freestyle-hid Authors +# SPDX-License-Identifier: Apache-2.0 + + +class HIDError(Exception): + """Errors related to the HID access process.""" + + +class ConnectionError(Exception): + """Errors related to Session establishment.""" + + +class ChecksumError(Exception): + """Errors related to the transmission checksums.""" + + +class CommandError(Exception): + """Errors related to the command stream.""" |