ArcObjects Library Reference (System)  

IErrorCollection Interface

Provides access to members that control an Error Collection.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Description

Unlike exceptions thrown within a program, COM exceptions do not stop the flow of execution; instead, a COM error object is created within the current thread. The error object supports the IErrorInfo interface, which has methods allowing the client to get the name of the class and interface which created the error, and a description of the error.

QI from IErrorInfo to IErrorCollection.

See the Error Handling in Components topics for more details.

Members

Description
Read-only property ErrorCount The count of error records.
Read-only property ErrorDescription The description of the specified error record.