Share this page

# lr.continueOnError

Specifies an error handling method.

Example | Runtime Functions

## Syntax

    lr.continueOnError( option );

## Arguments

Argument | Comments
--- | ---
option | One of the Error Continuation Options.

The lr.continueOnError 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.continueOnError function before and after the desired segment (see the example for details).

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

## Return Values

Not applicable

## Parameterization

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

## Example

    function Action(){

       lr.continueOnError(0);

       //...

       lr.continueOnError(1);
    return 0;
    }

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: