The textReport.pushErrorMessage() function places the specified error message on a stack. By keeping error messages in a stack, you can pop the latest message in a function and determine whether you can handle it there. If not, push it back on the stack and return so that a higher level function can make the same test.
You can call this function either from the text report engine or from the text report driver.
textReport.[textReportDriver.]pushErrorMessage(
errorMsg STRING in)
In the following example, the program displays the most recently saved error message:
myReport TextReport = new TextReport();
myErrorMsg STRING; // set upon error
...
myReport.output(myReport.pushErrorMessage(myErrorMsg));