XenoGuard Documentation

Write Error

Actions » Programming » Action Script » Write Error 

The action Write Error creates an error message that will be included in the error list of the parent action script.



[-] Hide
  1. Open the Programming node in the Workspace Explorer.
  2. Open the Action Script node, select the Write Error action.

Parameters:

The action has the following input parameters:


name Description
Error Level
Defines the error level to be set and displayed in the error list of the parent action script.

Allowed Values
[Information, Warning, Error]
Allowed Context Scopes
 [Fixed, Local, Global]
Allowed Context Types [Variable, Parameter, Result]
Message
The text to be displayed in the error list of the parent action script.

Allowed Context Scopes [Fixed, Local, Global]
Allowed Context Types [Variable, Parameter, Result]

Information The Error Level varies in text color when displayed in the parent action script.

Example 1 (Error message in copying a text file):

In this example, a master action script starts a child action script that copies a text file from one directory to another. If an error occurs during execution, an error message will appear in the error list of the parent action script and then display the output from the Then branch of the If statement via Message Box.

Example 2 (Pass an error from the child script to the parent script):

This example executes a child action script, Round Root Error.xen that calculates the root value of the local variable numVarValue, with Floating Point as data type, and the Result is rounded off with the Round action. However, an exception error occurs in the child action script, and the error message is sent to the parent script.


See other action script operations:

Start
Wait
Return
Cancel
Write Result
Append Result