PulserSessionException(Exception, ErrorCode, string, params object[])
- Updated2025-01-08
- 1 minute(s) read
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
| Name | Type | Description |
|---|---|---|
| innerException | Exception | The exception that is the cause of the current exception, or a null reference if no inner exception is specified. |
| errorCode | ErrorCode | The error code associated with the instance of PulserSessionException. See ErrorCode enum for the list of NI-Pulser driver error codes. |
| format | string | 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 . |
| args | params 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. |