Table of Contents

Property ExtendedErrorInfo

Namespace
Skyline.DataMiner.Automation
Assembly
SLManagedAutomation.dll

ExtendedErrorInfo

Gets or sets a value indicating whether the script will return more detailed error information instead of throwing an exception. These can be retrieved with method GetErrorMessages(). This is supported from DataMiner 10.3.0/10.2.7 onwards (RN 33306).

public bool ExtendedErrorInfo { get; set; }

Property Value

bool

true if the script will return more detailed error info instead of throwing an exception; otherwise, false.

Examples

var script = engine.PrepareSubScript("SRM_PFL_Ericsson_Decoder");
script.ExtendedErrorInfo = true;
script.SelectScriptParam("Info", "{}");
script.SelectScriptParam("ProfileInstance", "{}");
script.SelectDummy("dummy1", dmaId, elementId);

script.StartScript();

if (script.HadError)
{
  string[] errors = script.GetErrorMessages();
  // Handle errors.
  }