Share this page

# lr_continue_on_error

Specifies an error handling method.

    void lr_continue_on_error( int value );

Alphabetical Listing - C Language Utility Functions

## Arguments

Name | Comments
--- | ---
value | One of the Error Continuation Options.

The lr_continue_on_error function specifies how to handle errors. You can choose to continue running if an error occurs, or to abort the run execution.

Normally, you specify how the test run component handles errors during script execution using the General section in VuGen's Runtime Settings dialog. By default, the script exits when an error occurs. To continue script execution even when errors occur, select the `Continue on Error` check box in VuGen's Runtime Settings.

However, you can control error handling for a specific segment of the script, by inserting the lr_continue_on_error function before and after the desired segment (see the example for details).

In addition to the lr_continue_on_error statements, you can use Error Severity Levels to control error handling for database operation errors.

## Return Values

No value is returned.

## Parameterization

You cannot use standard parameterization for any arguments in this function.

## Example

In the following example, the Continue on Error runtime setting is enabled. If the script encounters an error while running the following segment, it continues executing the script.

    	lrd_stmt(Csr1, "select..."...);
    	lrd_exec(...);
    //To instruct the test run component to continue on error for the entire script except for this segment, 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 26.1 Function Reference 26.1 All View Local Help Center View Online Help Center Version: