To identify an error Scense uses the Error object.
At the moment Scense starts the Error Recovery an Error object is created, named ‘LastError’, in which details of the last error are saved.
This error object is transmitted to the ‘Error’-mode within the Taskset.See: Error Mode…)
The Error object is a collection of data describing the error, consisting of the following items:
The exact moment in time the error arose.
Source of the error (often the module in which the error was detected).
Name of the procedure in which the error was detected.
Additional information. (Often a description of what the procedure was trying to do at the moment the error arose.)
Runtime error code.
Description of the runtime error code.
System error code.
Description of the system error code.
The Error object can be used in a Scripting Action.
In the scripting action the error can be evaluated, after which action could be taken.
An example of a script using the error object is shown below.
The script above writes the contents of the Error object in the Executive Log, but obviously you could do almost anything with the data from the error object.