RaiseError Function

Action

Raises an error with the specified exception number and places the specified error message, preceded by *** Error:, into the results file.

Syntax

RaiseError(iExcept, sMessage)
Variable Description
iExcept The number of the exception you want to raise. INTEGER.
sMessage The error message string to associate with the raised error. STRING.

Example

RaiseError (13, "Employee dialog not dismissed after {ACCEPT_TIMEOUT} seconds")
The above example raises exception number 13 and places the following error message in the results file (given that an ACCEPT_TIMEOUT value of 15 had been established):
*** ERROR: Employee dialog not dismissed after 15 seconds