Table of Contents

Class AdapterMessageBag

Namespace
MES.MQC.DataSourceLibrary.Models.Adapters
Assembly
MES.MQC.DataSourceLibrary.dll

The AdapterMessageBag contains multiple Error and Warning AdapterMessages.

public class AdapterMessageBag
Inheritance
AdapterMessageBag
Inherited Members

Properties

AdapterName

public string AdapterName { get; set; }

Property Value

string

Errors

public HashSet<AdapterMessage> Errors { get; set; }

Property Value

HashSet<AdapterMessage>

Warnings

public HashSet<AdapterMessage> Warnings { get; set; }

Property Value

HashSet<AdapterMessage>

Methods

ThrowError(string, string)

Throws an Error message to be either ignored, displayed at a notification (on data source import or refresh) or shown in a validation dialog (if a report file is imported as a test). The import of the current filePath is aborted with an internal exception.

public void ThrowError(string title, string description)

Parameters

title string

Title of the error notification

description string

Description of the error notification

ThrowWarning(string, string)

Throws an Warning message to be either ignored, displayed at a notification (on data source import or refresh) or shown in a validation dialog (if a report file is imported as a test). The import of the current filePath continues unimpeded by the warning.

public void ThrowWarning(string title, string description)

Parameters

title string

Title of the warning notification

description string

Description of the warning notification