RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
EOleException Class

EOleException is the exception class for OLE automation errors that occur in methods or properties of an object.

Pascal
EOleException = class(EOleSysError);
C++
class EOleException : public EOleSysError;

ComObj

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 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 inherited from EOleSysError

 

Invoke

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!