Skip to content

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).

public sealed class SdoAbortException : CanKit.Core.Exceptions.CanKitException

Inheritance ObjectExceptionCanKitException → 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.

public SdoAbortException(ushort index, byte subindex, uint abortCode, string 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).

public uint AbortCode { get; }

Property Value

UInt32

SdoAbortException.Index Property

Object index that the failing SDO transfer targeted.

public ushort Index { get; }

Property Value

UInt16

SdoAbortException.Subindex Property

Object subindex that the failing SDO transfer targeted.

public byte Subindex { get; }

Property Value

Byte