BrokerLost class

From m204wiki
Revision as of 16:01, 25 March 2025 by Alex (talk | contribs)
Jump to navigation Jump to search


The BrokerLost exception class indicates that the connection with the Imagine Transparency broker for the session was lost, either because of a network issue or an error in the Imagine application. The Call function of the Imagine system class is currently the only method that might throw a BrokerLost exception. For more information about catching a thrown exception, see Try and Catch. A lost broker connection for Imagine Transparency file operations results in a request cancellation as there's typically no method to throw the exception and, even if an exception were thrown in such a case, the error is so low-level and severe that any attempt to recover from it would be a bad idea.

The BrokerLost methods

The following are the available BrokerLost class methods.

MethodDescription
NewCreate a new BrokerLost object

The methods in the class are described in the subsections that follow. In addition:

New constructor

Create a new DaemonLost object (DaemonLost class)

This Constructor generates an instance of a DaemonLost exception. As shown below, the optional argument of the New method is a setting of the DaemonOutput property.

Syntax

%brokerLost = [%(BrokerLost):]New

Syntax terms

%brokerLost A reference to an instance of a BrokerLost object.
[%(BrokerLost):] The class name in parentheses denotes a Constructor.