Processing Run-time Errors

Run-time Errors in Direct Mode
Run-time Errors Outside of Direct Mode

GT.M does not detect certain types of errors associated with indirection, the functioning of I/O devices, and program logic until run-time. Also, the compile-as-written feature may leave errors which GT.M reports at run-time when it encounters them in the execution path. At run-time, GT.M reports any error encountered to SYS$ERROR. The run-time system suspends normal execution of the routine as soon as it detects an error.

GT.M responds to errors differently depending on whether it encounters them in Direct Mode (at the command line) or during normal program execution.

When an executing GT.M image encounters an error:

After the action, if any, invoked by $ETRAP, $ZTRAP or EXCEPTION: