mirror of
https://github.com/controllerzz/carbus_lib.git
synced 2026-07-14 07:50:13 +03:00
save
This commit is contained in:
@@ -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}"
|
||||
Reference in New Issue
Block a user