AdsException Constructor (String, Exception)

Initializes a new Instance of the AdsException class.

Namespace:  TwinCAT
Assembly:  TwinCAT.Ads.Abstractions (in TwinCAT.Ads.Abstractions.dll) Version: 6.0.328+39e3229

Syntax

C#

public AdsException(
    string message,
    Exception? innerException
)

Parameters

message

Type: System.String
The error message that explains the reason for the exception.

innerException

Type: System.Exception
The exception that is the cause of the current exception. If the innerException parameter is not a null reference, the current exception is raised in a catch block that handles the inner exception.

Reference

AdsException Class

AdsException Overload

TwinCAT Namespace