|
Add Error Handler |
Top Previous Next |
|
The Add Error Handler feature allows you to add an error handler to the current procedure from a customizable template with predefined variables such as module name, procedure name, procedure type, etc. You can customize the template and predefined variables in the Options window, Error Handler tab. MZ-Tools offers the following ways to add an error handler:
The error handler can be added to an empty procedure or to a procedure which already has code. In this case, the error handler is merged properly with the procedure body. You can add a header and an error handler to a procedure in the same step with the Add Both feature. You can use the Erl property in your error handlers to know the line that caused the error. In this case, you need to number the lines of code with the Line Numbering feature. See Also: |