8.9   Error Handling

This section describes how errors are handled in HDevelop programs. When an error occurs, the default behavior of HDevelop is to stop the program execution and display an error message box. While this is certainly beneficial at the time the program is developed, it is usually not desired when the program is actually deployed. A finished program should react to errors itself. This is of particular importance if the program interacts with the user.

There are basically two approaches to error handling in HDevelop:

A major difference between these approaches is the realm of application: The first method handles errors inside the procedure in which they occur. The latter method allows errors to work their way up in the call stack until they are finally dealt with.