-
Notifications
You must be signed in to change notification settings - Fork 426
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
logitech_receiver: Move exceptions into own module
Related #1097
- Loading branch information
Showing
9 changed files
with
88 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
from .common import KwException as _KwException | ||
|
||
# | ||
# Exceptions that may be raised by this API. | ||
# | ||
|
||
|
||
class NoReceiver(_KwException): | ||
"""Raised when trying to talk through a previously open handle, when the | ||
receiver is no longer available. Should only happen if the receiver is | ||
physically disconnected from the machine, or its kernel driver module is | ||
unloaded.""" | ||
pass | ||
|
||
|
||
class NoSuchDevice(_KwException): | ||
"""Raised when trying to reach a device number not paired to the receiver.""" | ||
pass | ||
|
||
|
||
class DeviceUnreachable(_KwException): | ||
"""Raised when a request is made to an unreachable (turned off) device.""" | ||
pass | ||
|
||
|
||
class FeatureNotSupported(_KwException): | ||
"""Raised when trying to request a feature not supported by the device.""" | ||
pass | ||
|
||
|
||
class FeatureCallError(_KwException): | ||
"""Raised if the device replied to a feature call with an error.""" | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.