Show: Delphi C++
Display Preferences

System.Win.ComObj.OleError

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure OleError(ErrorCode: HResult);

C++

extern DELPHI_PACKAGE void __fastcall OleError(HRESULT ErrorCode);

Properties

Type Visibility Source Unit Parent
procedure
function
public
System.Win.ComObj.pas
System.Win.ComObj.hpp
System.Win.ComObj System.Win.ComObj

Description

Raises an EOleSysError exception.

OleError raises an EOleSysError exception from an error code passed in as the ErrorCode parameter.

OleError is used internally to catch failed function calls by throwing an EOleSysError exception that indicates the cause of the failure as an error code. Unlike the OleCheck procedure, which checks its parameter to determine whether it represents an error, OleError always raises an exception.

See Also

Personal tools
In Other Languages
Previous Versions
Assistance