Cancel_On_Error Command

Description:

This command terminates the automatic trapping of Script errors, which is enabled with the On_Error command.

This command will only effect automatic trapping of Script errors within the current Script. Any On_Error handler established by a calling Script will be re-established when exiting from this Script.

Format:

Cancel_On_Error labelName

Parameters:

labelName

A label defined within the current scope of the Script.

Example:

FILE fileid;

BEGIN

On_Error Goto MyLabel;

log "Open file";
Open "filename.txt" As fileid For Input;
log "File was opened successfully";

Cancel_On_Error;

Close fileid;

MyLabel:
    log "Error opening file";

See Also:





Go back to the Learning center:


Copyright © AgileLoad. All rights reserved.
Agile Load testing tool| Contact AgileLoad | Terms of Use | Sitemap