Error Handling (QAB )

An OSDI returns error codes to application programs in the variable print_error. This is zero to indicate no error, or greater than zero if an error has occurred. Other than this, the meaning of print_error values is device-specific and should be described in the manual which accompanies your specific OSDI.

The action your QA Build program takes when print_error is greater than zero depends on the value of another variable: pr_error_mode.

Value of pr_error_mode Interpretation

0 (default)

Report error and terminate program

1

Report error and continue program

2

Ignore error

3

Use "hot key" error handling

It is possible to use QAB "hot key" processing as a means of handling errors from the OSDI in QAB. This method is popular as it allows error handling to be localised within the QAB application. The scheme is that if you set pr_error_mode to 3 and install a hot key function then if the OSDI returns an error the hot key function will be called and will select the option defined by the value of the qpr_hotkey variable (initially this defaults to 99). This option can then examine the value of the print_error variable and take appropriate action.

This option is enabled by the QAB libraries replacing the standard dvc_check() functionality.