Datasnap.Provider.TLocalAppServer.SafeCallException

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function SafeCallException(ExceptObject: TObject;  ExceptAddr: Pointer): HResult; override;

C++

virtual HRESULT __fastcall SafeCallException(System::TObject* ExceptObject, void * ExceptAddr);

Properties

Type Visibility Source Unit Parent
function public
Datasnap.Provider.pas
Datasnap.Provider.hpp
Datasnap.Provider TLocalAppServer

Description

Handles exceptions in methods declared using the safecall calling convention.

Datasnap.Provider.TLocalAppServer.SafeCallException inherits from System.TObject.SafeCallException. All content below this line refers to System.TObject.SafeCallException.

Handles exceptions in methods declared using the safecall calling convention.

SafeCallException handles exceptions in methods that use the safecall calling convention. Some classes that implement interfaces override this method to handle possible errors.

As implemented in TObject, SafeCallException simply returns E_UNEXPECTED. This is the appropriate response for classes that do no support interfaces.