MAINSAIL Language Manual, Section 30.2

previous   next   top   contents   index   framed top   this page unframed


30.2. $abortProgramExcpt

Figure 30–2. $abortProgramExcpt
system variable
STRING $abortProgramExcpt;

$abortProgramExcpt is a predefined exception that is raised to abort a program. $abortProgramExcpt is registered (with $registerException) at the start of a MAINSAIL execution, so it can be raised by giving an appropriate reply to the errMsg Error response: prompt. It is handled by falling out of the handler by MAINEX, MAINEDIT, MAINDEBUG, and other system programs that operate as command interpreters, and should be so handled by user programs that allow the invocation of arbitrary MODULEs. $abortProgramExcpt basically means to abort the current program and return to the level of command interpreter from which it was invoked.

See also Section 20.8.


previous   next   top   contents   index   framed top   this page unframed

MAINSAIL Language Manual, Section 30.2