Share this page

# Error Handling

You can specify how to handle errors during script execution. By default, when the script detects an error, it exits. To continue script execution, even when errors occur, select the Continue on Error check box in VuGen's General runtime settings.

To control error handling for a specific segment of the script, insert an lr_continue_on_error statement before and after the desired segment. The new setting is used until the end of the script execution or until another lr_continue_on_error statement is issued.

For example, if you enable the Continue on Error runtime setting and an error is encountered during replay of the following segment, execution.

lrd_stmt(Csr1, "select..."...);

lrd_exec(...);

To continue on error for the entire script except for one segment, enable the Continue on Error setting, and then enclose the segment with lr_continue_on_error statements.

lr_continue_on_error (0);

lrd_stmt(Csr1, "select..."...);

lrd_exec(...);

lr_continue_on_error(1);

Tips to improve your search results... VuGen Function Reference Version 25.1-25.3 Function Reference 25.1-25.3 All View Local Help Center View Online Help Center Version: