timer class : StopWithException getter

Description

Returns a value that indicates whether to stop with the exception.

Syntax

instance.StopWithException

Arguments

None

Return value

ClassDescription
boolWhether to stop with the exception.

Sample code

Suppose you have the following class definition.

1:

class handle

2:

open method void THandler(dictionary dic)

3:

... // timer handler code.

4:

endmethod

5:

endclass

Usage of the StopWithException getter is as follows.

1:

handle h = new handle();

2:

timer tim = new timer(h,"THandler(dictionary)", 1000);

3:

bool stop = tim.StopWithException; // It returns true.

Notes

Returns whether to stop if the exception occurs in the handler.

Returns true if timer handling will stop. Otherwise, returns false.

The defalut is true.

Links for reference

None

Copyright © Cooker All rights reserved.