Design: 09.01/P03
This is an abstract, language-independent design. Grim
details may be found in the
corresponding source code.
You may return to the
documentation
for the module containing this program design, or to the
entire hierarchical table of
topics covered by the PVT.
PROGRAM 3: Default error handling with error mode ON
CHARACTERISTICS: nnny
OPERATOR SCRIPT:
This program uses the system default error handler. The usual means
of invoking PVT programs links in a user-defined error handler. Be
sure to use the special mechanism provided (normally the "phfe" or
"phce" command) for invoking programs without the user-defined error
handler, since it overrides the system handler.
Operator responds to the questions on the screen.
DESIGN:
In order to test the default system error handling, write all error
messages at an error file, then close phigs, rewind error file,
display error message to operator, interact with operator to determine
pass or fail.
pxa = (0.,0.5)
pya = (0.,0.5)
n = 2
TEST: #SR 1 4 6 7 8 9
"If error handling mode is ON, the default error handler is in
effect, and no structure is open, then <polyline> should
invoke the default handler."
<polyline>
read error message from error file and display to operator
ask operator: does error message indicate function <polyline>
with error #5?
pass/fail depending on (operator's response is yes)
END PROGRAM 3