Error handling statements

Error handling statements specify how to handle errors that occur during playback and return error information.

Statement Description
Err.Clear
Clears error information from the Err object.
Err.CallStack
Returns the stack of function, subroutine, script, and Try calls up to the script line where the last error occurred.
Err.Description
Returns a string with the last error that occurred, as defined in the Err.Raise statement.
Err.LineNumber
Returns the script line number where an error occurred.
Err.LineText
Returns text from the script line where the last error occurred.
Err.Number
Returns the error number for the last error that occurred, as defined in the Err.Raise statement.
Err.Raise
Generates a script error.
Err.ScriptName
Returns the script name that an error occurred in.
Err.Source
Returns a string that identifies where the last error occurred, as defined in the Err.Raise statement.
Fail Stops script playback, displays a message in the Errors pane, and adds the message to the run report.
GetCallStack Returns the complete stack of function, subroutine, script, and Try calls up to the current script line.
GetVariableValues Returns all script and repository variables and the current values as a string.
IgnoreErrors Stops displaying errors in the Errors pane during playback and in run reports.
IgnoreWarnings Stops displaying warnings in the Errors pane during playback and in run reports.
IsIgnoringErrors Returns True or False to indicate if errors are displayed in the Errors pane during playback and in run reports.
IsIgnoringWarnings Returns True or False to indicate if warnings are displayed in the Errors pane during playback and in run reports.
On Error Sets the error handling behavior for a script, function, or subroutine.
Throw Regenerates the error handled by the containing Catch block.
Try...Catch...Finally Wraps a block of statements where errors may occur. Statements in the Try block run until an error occurs. If an error occurs, playback continues with statements in the Catch block. Statements in the Finally block always run even if errors do not occur.
Warning Displays a warning message in the Errors pane and adds it to the run report.