AdsException(String, Exception) Constructor

Initializes a new Instance of the AdsException class.


Namespace: TwinCAT
Assembly: TwinCAT.Ads.Abstractions (in TwinCAT.Ads.Abstractions.dll) Version: 7.0.0+e56d35ccc4675faac24789a4aab60071fc61d470

Syntax

C#

public AdsException(
    string message,
    Exception? innerException
)

Parameters

message  String

The error message that explains the reason for the exception.

innerException  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

Beckhoff Automation GmbH & Co. KG 2001-2026