Files
carbus_lib/uds_async/exceptions.py
T
controllerzz 957d825a3b save
2025-12-11 09:04:25 +03:00

17 lines
290 B
Python

from __future__ import annotations
from dataclasses import dataclass
class UdsError(Exception):
...
@dataclass
class UdsNegativeResponse(UdsError):
req_sid: int
nrc: int
def __str__(self) -> str:
return f"UDS NRC 0x{self.nrc:02X} for SID 0x{self.req_sid:02X}"