Initializes a new instance of the PulserSessionException class with a reference to the inner exception that causes this exception, an error code, and an error message.

Syntax

Namespace: NationalInstruments.ECUTS.Pulser

public PulserSessionException(Exception innerException, 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
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 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.