Method GetErrorMessages
- Namespace
- Skyline.DataMiner.Automation
- Assembly
- SLManagedAutomation.dll
GetErrorMessages()
Returns the error messages of the script after execution when the ExtendedErrorInfo option is set to true
. This is supported from DataMiner 10.3.0/10.2.7 onwards.
public string[] GetErrorMessages()
Returns
- string[]
The error messages of the script.
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...
}