Initializes a new instance of the DaqException class with the specified error message, NI-DAQmx driver error code, and reference to the inner exception that is the cause of the exception.

Syntax

Namespace: NationalInstruments.DAQmx

public DaqException(string message, int errorCode, Exception inner)

Remarks


NI-DAQmx Driver Error Codes

Parameters

NameTypeDescription
messagestring

The error message that explains the cause of the exception.

errorCodeint

The NI-DAQmx driver error code that caused this exception to be thrown. Refer to NI-DAQmx Driver Error Codes for a list of possible values.

innerException

The exception that caused this exception.