Difference between revisions of "RPC HELP TRPCBroker OnRPCBFailure"
From VistApedia
(Created page with "<h2>OnRPCBFailure Property</h2> Example <h3>Applies to</h3> TRPCBroker component <h3>Declaration</h3> property OnRPCBFailure: TOnRPCBFailure...") |
|||
Line 1: | Line 1: | ||
<h2>OnRPCBFailure Property</h2> | <h2>OnRPCBFailure Property</h2> | ||
− | Example | + | [[RPC_HELP_TRPCBroker_OnRPCBFailure_Example|Example]] |
<h3>Applies to</h3> | <h3>Applies to</h3> |
Latest revision as of 17:40, 4 July 2015
OnRPCBFailure Property
Applies to
TRPCBroker component
Declaration
property OnRPCBFailure: TOnRPCBFailure;
Description
The OnRPCBFailure property is available at run-time only. It holds a procedure to be invoked when the Broker generates an exception that permits an application to handle errors as desired, where TOnRPCBFailure is defined as:
TOnRPCBFailure = procedure (RPCBroker: TRPCBroker) of object;
The text associated with the error causing the exception will be found in the RPCBError property.
NOTE: If OnFailedLogin is also set, it will handle any login errors and not pass them up.
NOTE: Run the "Error Handling Demo" application (i.e., XWBOnFail.EXE, located in the ..\BDK\Samples\SilentSignOn p [13] directory), to illustrate the effects of TRPCBroker properties related to Error Handling.