Vcl.OleAuto.EOleException

From RAD Studio API Documentation
Jump to: navigation, search

Vcl.OleAuto.EOleErrorSystem.SysUtils.ExceptionSystem.TObjectEOleException

Delphi

EOleException = class(EOleError)

C++

class PASCALIMPLEMENTATION EOleException : public EOleError

Properties

Type Visibility Source Unit Parent
class public
Vcl.OleAuto.pas
Vcl.OleAuto.hpp
Vcl.OleAuto Vcl.OleAuto

Description

Exception class for OLE automation errors that occur in methods or properties of an object.

EOleException is the exception class for errors specific to the OLE IDispatch interface. EOleException is raised when an error occurs in the middle of a method call from IDispatch. EOleException is generated when a server receives a failure return value from a property or method that was called with the IDispatch interface's Invoke method.

When an error occurs, objects invoked through IDispatch can return essential information about the exception, including the source of the error, error code, description, help file, and ID number for context-sensitive help. EOleException captures this information and the error description and ID number (if available) are included in a message generated by the constructor; the other information is stored in the Source and HelpFile properties defined for EOleException and the ErrorCode property.

See Also