System.Win.ComObj.OleError
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.