Design: 09.01.10.02/P04

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 4: Error 2005 handled by system

CHARACTERISTICS: nnny

OPERATOR SCRIPT:
See OPERATOR SCRIPT for Program 1.

DESIGN:

Throughout this program, every time an error is signalled (as noted by
te tag "signals error", the user-defined error handler saves the error
code, function identifier, and error file identifier in an error table.

*** *** ***  Generate errors  *** *** ***

<open structure> 100

<fill area set> with npl = -2: signals error
<fill area set 3> with npl = 0: signals error
<close structure>

TEST: #SR 4
      "If <fill area set 3> signals an error because an invalid list
       of point lists is specified, it should not cause any other
       effect."
pass/fail depending on (element pointer = 0)

*** *** ***  Results of system-defined error handling  *** *** ***

TEST: #SR 4
      "If <fill area set> is called and an invalid list of point lists
       is specified, it should write an accurate, self-identifying
       error message on the error file."
pass/fail depending on (operator verifies error message)

TEST: #SR 4
      "If <fill area set 3> is called and an invalid list of point
       lists is specified, it should write an accurate,
       self-identifying error message on the error file."
pass/fail depending on (operator verifies error message)

END PROGRAM 4