-
Notifications
You must be signed in to change notification settings - Fork 179
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
raise error when an error frame is detected.
- Loading branch information
amit lissack
committed
Oct 5, 2021
1 parent
8c008c4
commit 93202f9
Showing
3 changed files
with
38 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
"""Can bus errors.""" | ||
|
||
|
||
class CanError(Exception): | ||
"""Can bus error.""" | ||
|
||
def __init__(self, message: str) -> None: | ||
"""Constructor.""" | ||
super().__init__(message) | ||
|
||
|
||
class ErrorFrameCanError(CanError): | ||
"""An error frame was received on the can bus.""" | ||
|
||
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