The textReport.popErrorMessage() function returns the most recent saved error message. 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.]popErrorMessage()
returns (errorMsg STRING)
In the following example, the program displays the most recently saved error message:
myReport TextReport = new TextReport();
...
myReport.output(myReport.popErrorMessage());