SkylineCommunications / Skyline.DataMiner.Utils.InteractiveAutomationScriptToolkit

Quickly develop interactive automation scripts for DataMiner.
MIT License
1 stars 7 forks source link

Section.AddWidget does not indicate what the position of the already added widget is in the exception #4

Closed VictorScherpereell closed 10 months ago

VictorScherpereell commented 1 year ago

When getting the exception System.ArgumentException: Widget is already added to the section at Skyline.DataMiner.Utils.InteractiveAutomationScript.Section.AddWidget(Widget widget, IWidgetLayout widgetLayout)

It would be useful to have some kind of indication for which widget this exception is thrown by mentioning the position of the already added widget in the exception message.

ThomasRemmery commented 10 months ago

The OverlappingWidgetsException contains the position of the overlapping widgets. This feature was implemented in all versions of the toolkit.