MDAC 2.5 SDK - OLE DB Programmer's Reference
OLE DB Interfaces
IErrorLookup is used by OLE DB error objects to determine the values of the error message, source, Help file path, and context ID based on the return code and a provider-specific error number.
IErrorLookup is exposed by a provider-specific error lookup service that is mandatory for all providers that return OLE DB error objects.
All providers that return OLE DB error objects must implement IErrorLookup in a separate lookup service. For information about the registry entries used by error lookup services, see "Error Lookup Service Registry Entries" in Chapter 18, “Programming Considerations."
IErrorLookup is called by the code shipped in the Microsoft® Data Access Components (MDAC) SDK that implements OLE DB error objects. It should not be called by general consumers.
When an error occurs, the following sequence of events takes place:
Method | Description |
GetErrorDescription | Returns the error message and source, based on the return code and the provider-specific error number. |
GetHelpInfo | Returns the path of the Help file and the context ID of the topic that explains the error. |
ReleaseErrors | Releases any dynamic error information associated with a dynamic error ID. |