Language element Explanation
$ECode
$ECode Is empty ("") or set with a standard error code. $ECode
can be set to initiate an error and to check the errorprocessing logic.
$ETrap
$ETrap Contains the (arbitrary) code to be executed after an error.
$ZTrap
$ZTrap Contains a branch address to which a jump is made after an
error and where the processing continues.
$STack
$STack Contains the number of the stack level.
$EStack
$EStack As $STack, but the New command can be used.
$Quit
$Quit Is TRUE (1) when it is invoked in the context of a userdefined function, otherwise 0 in normal subroutines.
Special variables
$ZError
$ZError Caché error code after an error, e.g.,
Label+2^Prog1
Functions $STack Records the routine environment after an error in the
various stack levels.
Commands ZQuit Deletes all or a specified number of stack levels.
ZTrap Can be set in a routine to simulate an error.