RPC HELP TRPCBroker OnRPCBFailure

From VistApedia
Jump to: navigation, search

OnRPCBFailure Property

Example

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.