System.TObject.SafeCallException

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

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

C++

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

Properties

Type Visibility Source Unit Parent
function public
System.pas
systobj.h
System TObject

Description

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 not support interfaces.

See Also