Skip to main content
insightsoftware Documentation insightsoftware Documentation
{%article.title%}
Published:
Was this article helpful?
0 out of 0 found this helpful

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.

Copy

Syntax

THROWERROR "String"                        

where:

  • String is the error message that is saved into the LVS_ERRORMESSAGE system variable.
Copy

Syntax example

THROWERROR "File input error."
THROWERROR "Array out of bounds error."                

See also

Published:

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.

Copy

Syntax

THROWERROR "String"                        

where:

  • String is the error message that is saved into the LVS_ERRORMESSAGE system variable.
Copy

Syntax example

THROWERROR "File input error."
THROWERROR "Array out of bounds error."                

See also

For an optimal Community experience, Please view on Desktop