This commit is contained in:
controllerzz
2025-12-11 09:04:25 +03:00
parent 0506c6393d
commit 957d825a3b
19 changed files with 2303 additions and 1 deletions
+16
View File
@@ -0,0 +1,16 @@
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}"