Skip to content

Commit

Permalink
Add generic error
Browse files Browse the repository at this point in the history
  • Loading branch information
rrooggiieerr committed Jun 18, 2024
1 parent a100486 commit 1b8d4e8
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions rfcontrol/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,19 @@
]


class RFControlProtocolNotFoundError(Exception):
class RFControlError(Exception):
"""
Generic RF Control error.
"""


class RFControlProtocolNotFoundError(RFControlError):
"""
This error is raised when a protocol can not be found.
"""


class RFControlSendNotSupportedError(Exception):
class RFControlSendNotSupportedError(RFControlError):
"""
This error is raised when a protocol only supports receiving and not sending.
"""
Expand Down

0 comments on commit 1b8d4e8

Please sign in to comment.