Skip to content

J1939TpException Class

Base class for every exception raised by the J1939-TP channel. Derives from CanKitException so L2/L3/L4 failures can be caught uniformly across the library (NFR-006 error architecture, arc42 ADR-12).

public class J1939TpException : CanKit.Core.Exceptions.CanKitException

Inheritance ObjectExceptionCanKitException → J1939TpException

Derived
J1939TpAbortException
J1939TpSendRejectedException

Constructors

J1939TpException(CanKitErrorCode, string) Constructor

Creates a new J1939TpException with a specific library error code.

protected J1939TpException(CanKit.Core.Exceptions.CanKitErrorCode errorCode, string message);

Parameters

errorCode CanKitErrorCode

message String

J1939TpException(string) Constructor

Creates a new J1939TpException.

public J1939TpException(string message);

Parameters

message String

J1939TpException(string, Exception) Constructor

Creates a new J1939TpException wrapping an underlying exception.

public J1939TpException(string message, System.Exception innerException);

Parameters

message String

innerException Exception