REFACT Switch to unified factory class

Этот коммит содержится в:
Alexander UR6LKW
2025-05-28 20:51:16 +03:00
родитель 00886beefd
Коммит 4db12d074c
3 изменённых файлов: 70 добавлений и 55 удалений
+12 -8
Просмотреть файл
@@ -10,14 +10,6 @@ class DMRPFieldOutOfRangeException(Exception):
super().__init__(f"Field out of range: {field} must be {typename}")
class DMRPUnknownPacketTypeException(Exception):
"""
Exception raised when the packet factory cannot recognize the packet type
from the given input data.
"""
pass
class DMRPBadPacketException(Exception):
"""
Exception raised when a packet is structurally invalid or corrupted
@@ -30,3 +22,15 @@ class DMRPL2BadDataException(Exception):
Exception raised when L2 data is invalid or corrupted.
"""
pass
class FactoryException(Exception):
pass
class DMRPUnknownPacketTypeException(FactoryException):
"""
Exception raised when the packet factory cannot recognize the packet type
from the given input data.
"""
pass