addWorkunitError
STD.System.Log.addWorkunitError
STD.System.Log.addWorkunitError
System.Log.addWorkunitError
Log.addWorkunitError
addWorkunitError
( text [ , code ]
)
text
A string containing the text to write.
code
Optional. The code number to associate with the
text. If omitted, the default is zero
(0).
Return:
addWorkunitError does not return a value.
The addWorkunitError function
writes the text string to the eclagent.log file for the
workunit, and also displays the code and
text in the Syntax Errors toolbox along with the
Errors section of the ECL Watch page for the workunit.
Example:
IMPORT STD;
STD.System.Log.addWorkunitError('Got Here',1);
//write text to log and display "1: Got Here" in Errors