Datasnap.Win.SConnect.TStreamedConnection.DoError

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type:
procedure
function
Visibility: protected
Source:
Datasnap.Win.SConnect.pas
Datasnap.Win.SConnect.hpp
Unit: Datasnap.Win.SConnect
Parent: TStreamedConnection

Delphi

procedure DoError(E: Exception); virtual;

C++

virtual void __fastcall DoError(System::Sysutils::Exception* E);

Description

raises an exception for a specified exception object.

TStreamedConnection uses a separate thread when making interface calls to the application server. When that thread encounters an exception, it sends a message to the Window handle specified by the Handle property. The connection component uses DoError to raise those exceptions.

Note: DoError is called by the ThreadException method, which is the message handler for thread exceptions. It is also called when thread exception messages are taken from the message queue before they are received by the internal window procedure.

See Also