Initializes a new instance of the PowerSignalsDaqException class with a specified error type and error message.

Syntax

Namespace: NationalInstruments.PowerSignalsDaq

public PowerSignalsDaqException(ErrorCode errorCode, string format, params object[] args)

Remarks

The initial ErrorCode property value for an instance of PowerSignalsDaqException is the specified error type, and the initial Exception.Message property value is the specified error message.

Parameters

NameTypeDescription
errorCodeErrorCode

The error code associated with the instance of PowerSignalsDaqException. See ErrorCode for the list error codes have been used in NI-PowerSignalsDAQ driver.

formatstring

A composite format string representing the error message.

argsparams object[]

An object array that contains zero or more objects to format.