BBjConfig::suppressErrorsOnClientObjVoidMethods

Description

In BBj 8.0 and higher, this method controls whether the Interpreter waits for completion of ClientObject methods that have void return type. If the Interpreter does not wait for completion then any exception that is generated on the client side during the method execution will not generate an error in the users program.

Syntax

Return Value

Method

void

suppressErrorsOnClientObjVoidMethods(boolean suppress)

Parameters

Variable

Description

shouldSuppress

Specifies whether suppression should be turned on or off.

0 = No suppression (False)

1 = Suppression (True)

Return Value

None.

Remarks

If suppressErrorsOnClientObjVoidMethods() is set to the default value of FALSE, the Interpreter waits for ClientObject methods to complete before executing any subsequent program code. If the client side invocation results in an exception, BBj generates an error in the users program.

If suppressErrorsOnClientObjVoidMethods() is set to TRUE, the Interpreter only waits for the completion of a ClientObject method if that method returns a non-void value. If an exception occurs in the client-sided execution of a void method, then an error will be generated in the users program.

Setting suppressErrorsOnClientObjVoidMethods() to TRUE can reduce the execution time for programs using ClientObjects but may hide errors. Therefore, set the value to FALSE until a program is completely debugged.

The default value of suppressErrorsOnClientObjVoidMethods can be set in EnterpriseManager in the ServerInformation – Performance tab.

See Also

BBjAPI

BBjConfig

ClientObject Tutorial

See the BBj Object Diagram for an illustration of the relationship between BBj Objects.