SdoAbortException Class¶
Thrown when an SDO transfer terminates with an Abort frame (CiA 301 §7.2.4.3.17). Carries the failing (Index, Subindex) and the raw 32-bit AbortCode — matched against SdoAbortCode when possible. Derives from CanKitException so L2/L3/L4 failures can be caught uniformly across the library (NFR-006 error architecture, arc42 ADR-12).
Inheritance Object → Exception → CanKitException → SdoAbortException
Remarks¶
Both the client and the server produce this exception. On the client side, the exception wraps a peer-sent Abort frame (or a locally-triggered timeout/abort). On the server side, the abort is emitted onto the bus and the exception is used only for internal control flow.
Constructors¶
SdoAbortException(ushort, byte, SdoAbortCode) Constructor¶
Constructs a new abort exception with a message derived from abortCode.
public SdoAbortException(ushort index, byte subindex, CanKit.Pro.CANopen.Sdo.SdoAbortCode abortCode);
Parameters¶
index UInt16
subindex Byte
abortCode SdoAbortCode
SdoAbortException(ushort, byte, uint, string) Constructor¶
Constructs a new abort exception with an explicit message.
Parameters¶
index UInt16
subindex Byte
abortCode UInt32
message String
Properties¶
SdoAbortException.AbortCode Property¶
Raw 32-bit abort code (little-endian in the wire frame).
Property Value¶
SdoAbortException.Index Property¶
Object index that the failing SDO transfer targeted.
Property Value¶
SdoAbortException.Subindex Property¶
Object subindex that the failing SDO transfer targeted.