blob: 2b803f8d2fb4e8b6ca00c73ca4d3a8e0b407dab1 (
plain) (
tree)
|
|
# 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."
)
|