DESCRIPTION: This module tests the error handling capabilities which the PHIGS implementation provides. SEMANTIC REQUIREMENTS:#F 318
SR1. <set error handling mode> turns error handling mode OFF or ON.
#F
SR2. The default error handling mode is ON.
#F 314
SR3. <inquire error handling mode> reports the correct error handling mode as OFF or ON.
#F 316
SR4. The implementation provides a default <error handling> function.
#F 316
SR5. The implementaion provides a means for the application program to specify its own <error handling> function.
#F 316
SR6. If the application program does not provide an <error handling> function, it uses the default <error handling> function.
#F 316
SR7. If an error is generated and error handling mode is ON, the <error handling> function currently in effect is called, and the appropriate error number, function identifier, and error file are passed to it as parameters.
#F 316 317
SR8. The default <error handling> function calls <error logging> function using the same parameters as passed to it.
#F 317
SR9. The <error logging> function writes an error message and PHIGS function identifier on the error file, then returns to the calling function.
#F 316
SR10. If an error is generated and error handling mode is OFF, no <error handling> function is called.
#F 315
SR11. When <emergency close phigs> is called, the open structure is closed, all open archive files are closed, all open workstations are updated and closed, and PHIGS is closed.
LOCAL DICTIONARY:
Functions --- 314: pqerhm <inquire error handling mode> 315: peclph <emergency close phigs> 316: perhnd <error handling> 317: perlog <error logging> 318: pserhm <set error handling mode> Data Structures --- 1 ... operating_state 1.1 ... system_state 1.2 ... workstation_state 1.3 ... structure_state 1.4 ... archive_state 4 ... phigs_state_list 4.1 ... set_of_open_workstations 4.2 ... name_of_open_structure 4.6 ... set_of_open_archive_files 8 ... phigs_error_state_list 8.1 ... error_state 8.2 ... error_handling_mode 8.3 ... error_file
You may inspect either the design or code for this program.
You may inspect either the design or code for this program.
You may inspect either the design or code for this program.
You may inspect either the design or code for this program.
You may inspect either the design or code for this program.
You may inspect either the design or code for this program.