mirror of
https://github.com/controllerzz/carbus_lib.git
synced 2026-07-12 15:00:17 +03:00
17 lines
290 B
Python
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}"
|