Initializes a new instance of the PulserSessionException class with an error code and an error message.

Syntax

Namespace: NationalInstruments.ECUTS.Pulser

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

Remarks

The initial ErrorCode property value for an instance of PulserSessionException is the specified error code, and the initial Exception.Message property value is the specified error message. This constructor is intended to be called only from within the NI-Pulser driver.

Parameters

NameTypeDescription
errorCodeErrorCode

The error code associated with the instance of PulserSessionException. See ErrorCode enum for the list of NI-Pulser driver error codes.

formatstring

A composite format string representing the error message. This string can contain format items, which are replaced by the string representations of the corresponding objects in args .

argsparams object[]

An object array that contains zero or more objects to format. These objects are inserted into the format  string at the corresponding format item positions.