Skip to content

UdsProtocolException Class

Raised when the ECU response is malformed or does not correlate with the outgoing request (wrong SID echo, positive-response length shorter than the sub-function/DID that was asked for, etc). Distinct from a proper NRC — this class flags protocol violations, not business-layer rejections.

public sealed class UdsProtocolException : CanKit.Pro.Uds.UdsException

Inheritance ObjectExceptionCanKitExceptionUdsException → UdsProtocolException

Constructors

UdsProtocolException(string) Constructor

Creates a protocol-violation exception.

public UdsProtocolException(string message);

Parameters

message String