switch 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 LCHandler(dictionary dic)

3:

... // event handler code.

4:

endmethod

5:

endclass

Usage of the StopWithException getter is as follows.

1:

browser b = new browser();

2:

handle h = new handle();

3:

switch sw = b.LoadCompleted(h,"LCHandler(dictionary)");

4:

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

Notes

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

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

The defalut is true.

Links for reference

None

Copyright © Cooker All rights reserved.