IncrementExceptionCount

Top  Previous  Next

×V4.3Ø

S

A

W

WS

ü

ü

Syntax -

IncrementExceptionCount

 

Description:

       This command is used to increment a stored variable called &ExceptionCount. &ExceptionCount is created with a value of zero and is incremented by one each time the command is run.

 

Sample:

       The following example increments the stored variable &ExceptionCount and checks to see if the value is greater than 5.

:Retry

IncrementExceptionCount

Tell "Unexpected error occurred..."

Tell "Closing browser and restarting..."

 

If &ExceptionCount GT 5 Then

       Tell "Exceeded maximum retries. Aborting script..."

   ExitError

Else

   CloseWebPage

   ClearCallStack

   Goto LogIn

EndIf