BrokerLost class: Difference between revisions

From m204wiki
Jump to navigation Jump to search
No edit summary
 
Line 14: Line 14:


==New constructor==
==New constructor==
{{Template:DaemonLost:New subtitle}}
{{Template:BrokerLost:New subtitle}}


This <var>Constructor</var> generates an instance of a <var>[[DaemonLost_class|DaemonLost]]</var> exception.  As shown below, the optional argument of the <var>New</var> method is a setting of the <var>[[DaemonOutput_(DaemonLost_property)|DaemonOutput]]</var> property.
This <var>Constructor</var> generates an instance of a <var>[[BrokerLost_class|BrokerLost]]</var> exception.  


===Syntax===
===Syntax===

Latest revision as of 16:02, 25 March 2025


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 BrokerLost object (BrokerLost class)

This Constructor generates an instance of a BrokerLost exception.

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.