switch class : ShowException getter

Description

Returns a value that indicates whether to display the error messages.

Syntax

instance.ShowException

Arguments

None

Return value

ClassDescription
boolWhether to display the error messages.

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 ShowException getter is as follows.

1:

browser b = new browser();

2:

handle h = new handle();

3:

switch sw = b.LoadCompleted(h,"LCHandler(dictionary)"); // It sets the instance of the handle class.

4:

bool show = sw.ShowException; // "true"

Notes

Returns a value that indicates whether to display the error messages if an exception occurs in the handler.

Returns true if the error messages will be shown. Otherwise, returns false.

The defalut is true.

Links for reference

None

Copyright © Cooker All rights reserved.