Error Records

OLE DB error objects store error information in error records. Each error record is composed of the following parts: an ERRORINFO structure, error parameters, a pointer to a custom error object, a dynamic error ID, and a lookup ID. Each of these parts is described more fully in this section.

Records in OLE DB error objects are numbered starting from zero. By using the methods in IErrorRecords, consumers can specify the record from which to retrieve error information. As error records are added, they are added to the top of the list. (That is, the number of the existing error records is increased by 1 and a new record 0 is added.) Thus, consumers can start with the highest level of error information and then retrieve increasingly more detailed information.

Show: