Initializes a new instance of the PowerSignalsDaqException class with a reference to the inner exception that is the cause of this exception and a specified error type and error message.

Syntax

Namespace: NationalInstruments.PowerSignalsDaq

public PowerSignalsDaqException(Exception innerException, 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
innerExceptionException

The exception that is the cause of the current exception, or a null reference if no inner exception is specified.

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.