Programming Guide:xppguide

Error Handling Concepts Foundation

In addition to code that addresses the problem that the program is designed to solve, code to handle error conditions is another important area of program development. In complex programs errors or exception conditions always occur, since no single programmer can test every possible combination in an extensive application, and no one can foresee every one of the large number of exception conditions which are possible. Potential error conditions must be considered when the application is being developed. Various strategies can be used in order to rectify potential errors within a program. There is no universal strategy. This chapter illustrates various approaches to planning for error conditions within a program during application development.

Offensive and defensive error handling

Use of error objects

Default error handling - ERRORSYS.PRG and XPPERROR.LOG


If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.