Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/samps/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
from .baudrate import BAUDRATE_LOOKUP_FLAGS, BAUDRATES, BaudrateType
from .crc import get_cyclic_redundancy_checksum
from .errors import (
BaseProtocolReadError,
SerialReadError,
SerialTimeoutError,
SerialWriteError,
Expand Down Expand Up @@ -54,6 +55,7 @@
"BAUDRATES",
"BaudrateType",
"BaseInterface",
"BaseProtocolReadError",
"Serial",
"SerialAsyncCommonInterface",
"SerialCommonInterface",
Expand Down
12 changes: 12 additions & 0 deletions src/samps/errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,18 @@
# **************************************************************************************


class BaseProtocolReadError(Exception):
"""
Exception class for base protocol read errors.
"""

def __init__(self, message: str) -> None:
super().__init__(message)


# **************************************************************************************


class SerialReadError(Exception):
"""
Exception class for serial read errors.
Expand Down