Table of Contents

Method ExitFail

Namespace
Skyline.DataMiner.Automation
Assembly
SLManagedAutomation.dll

ExitFail(string)

Aborts the Automation script, and indicates that it has failed.

void ExitFail(string reason)

Parameters

reason string

Message describing the reason.

Examples

engine.ExitFail("A fatal error has occurred.");

Remarks

caution

This method throws an ScriptAbortException. The script author is supposed to take this into account and make sure the script does not run endlessly, and that it does not swallow ScriptAbortException when calling ExitFail(string).