blob: 2b803f8d2fb4e8b6ca00c73ca4d3a8e0b407dab1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
# 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."""
class MissingFreeStyleKeys(Exception):
"""The freestyle-hid-keys package is missing."""
def __init__(self):
super().__init__(
"The freestyle-hid-keys package is missing, please install it from PyPi."
" You can install freestyle-hid[encryption] to select the encryption keys"
" package as an extra dependency."
)
|