Calling the Error Reporter from Your Own Functions

All Vermont Views public system functions set VV_ERR to an appropriate value when an error is detected and include conditional code that calls the error reporting function if VV_ERR is non-zero. If the error reporting function installed in the system is a NULLFP, no error reporting function is called. You must install an error reporting function for error reporting to occur from the system functions.

To have your functions automatically call the error reporting function, you must set VV_ERR to an appropriate value and include the conditional code that calls the error reporting function if VV_ERR is non-zero. You should do this only if (1) you want the error reporting function to be automatically called when an error is set in your function or (2) you want your functions included in the call log and call stack used in the VCS error reporting system. If you do not want to do either of these things, it is not necessary to include the error setting and reporting code in your functions.


Home Contents Previous Next