ThrowError
Use this command to manually create an error situation within the procedure, and save a user specified error message to the LVS_ERRORMESSAGE system variable. This initiates Longview Application Framework’s default error behavior. If an OnError statement exists within the procedure hierarchy, the default behavior is to trigger it. Otherwise, the default behavior is to terminate the procedure.
Syntax
THROWERROR "String"
where:
- String is the error message that is saved into the LVS_ERRORMESSAGE system variable.
Syntax example
THROWERROR "File input error."
THROWERROR "Array out of bounds error."
See also