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, reporting an abort sent by the peer (Peer).
public SdoAbortException(ushort index, byte subindex, CanKit.Pro.CANopen.Sdo.SdoAbortCode abortCode);
Parameters¶
index UInt16
subindex Byte
abortCode SdoAbortCode
SdoAbortException(ushort, byte, SdoAbortCode, SdoAbortOrigin) Constructor¶
Constructs a new abort exception with a message derived from abortCode and origin.
public SdoAbortException(ushort index, byte subindex, CanKit.Pro.CANopen.Sdo.SdoAbortCode abortCode, CanKit.Pro.CANopen.Sdo.SdoAbortOrigin origin);
Parameters¶
index UInt16
subindex Byte
abortCode SdoAbortCode
origin SdoAbortOrigin
SdoAbortException(ushort, byte, uint, SdoAbortOrigin, string) Constructor¶
Constructs a new abort exception with an explicit message and origin.
public SdoAbortException(ushort index, byte subindex, uint abortCode, CanKit.Pro.CANopen.Sdo.SdoAbortOrigin origin, string message);
Parameters¶
index UInt16
subindex Byte
abortCode UInt32
origin SdoAbortOrigin
message String
SdoAbortException(ushort, byte, uint, string) Constructor¶
Constructs a new abort exception with an explicit message, reporting an abort sent by the peer (Peer).
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.Origin Property¶
Which side ended the transfer: Peer when the abort frame came from the peer, Local when this node sent it — on its own timeout, on a protocol violation it detected, or because it refused the transfer up front. AbortCode is the code the originating side chose either way.
Property Value¶
SdoAbortException.Subindex Property¶
Object subindex that the failing SDO transfer targeted.