RUNTIME_ERROR_HANDLING

Navigation:  Appendices > Macro Language > Code Structure > Compiler Directives >

RUNTIME_ERROR_HANDLING

Previous pageReturn to chapter overviewNext page

Default value : rte_Abort_Script

Possible values : rte_Abort_Macro, rte_Abort_Script.

 

This directive tells Q++ what to do in the event it encounters an error while executing a Macro.

 

The default value is rte_Abort_Macro which aborts the current macro and generates an error message that will be included with other run-time messages in the error log. Script execution is not interrupted, it moves on to the next token (macro or non-macro).

rte_Abort_Script will do the same, but will abort the Script immediately. This setting may be used when you suspect that a first error is destabilizing your system.

 

The reason for choosing rte_Abort_Macro as the default value is that most tokens are independent of one another and that you can usually go on to another token even if there was an error in evaluating the previous one (that is what happens for regular tokens). Some of these error conditions may occur only for a few dates (such as No Holidays generated for the Year aYear) and you can always limit the number of run-time errors that Q++ will accept before aborting a Script (see Executing a Script).

 

Note that the above is true for token evaluation errors, such as can be found in Annex 2 : Run-Time Messages. However, the "bad" errors, such as Access Violations, will still lead to the Script immediately aborting.


Topic 107018 updated on 01-Nov-2016.
Topic URL: http://www.qppstudio.net/webhelp/index.html?runtime_error_handling.htm