When enabled, the AVM throws an instance of this Progress.Lang.StopAfter class and raises the STOP condition when a time-out occurs in response to the STOP-AFTER setting on a DO, FOR, or REPEAT block.
You can therefore catch instances of Progress.Lang.StopAfter in a CATCH block to trap each STOP condition raised by a time-out for a block that exceeds its STOP-AFTER setting, if any.
You cannot inherit from this class.
Serializable:
Yes
Constructors
The class constructors are reserved for system use only.
This class does not implement interfaces (beyond those it inherits from its base class).
Public Properties
This class does not contain properties (beyond those it inherits from its base class).
Public Methods
This class does not contain methods (beyond those it inherits from its base class).
Public Events
This class does not contain events.
Notes
In order to enable the AVM to throw Progress.Lang.StopAfter objects, you must specify the Catch STOP (-catchStop) startup parameter with the value 1 (-catchStop 1). Otherwise, the AVM raises the STOP condition only, without throwing the associated object.
By catching a StopAfter object with a CATCH block, you know what caused the AVM to raise the STOP condition and throw the object in the first place.
Note: You can instead trap the STOP condition using the ON STOP phrase on an associated block, but this does not tell you anything about what caused the AVM to raise the STOP condition itself.
Like any other class-based object that is no longer referenced, the AVM automatically deletes StopAfter objects using garbage collection.