The THROW command is used to generate a User defined Error Message that can be caught
by the current error handler (See TRY … CATCH … ENDTRY).
If there isn’t a current error handler then the program will exit and the message will
be displayed on the console.
DIM I AS INTEGER
DIM ERR AS STRING
FOR I=1 TO 10
IF (I=5) THEN
PRINT "ERROR> " + ERR
* THROW A Second Error from within the Error Handler
* This time there isn't a current error handler so it
* will cause the program to abort - you will notice
* that the program doesn't print "Program Finished".
THROW ERR + " THROWN by ERROR1"
PRINT "Program Finished"