IErrorCollection Interface

Provides access to members that control an Error Collection.

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

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

IErrorCollection.ErrorCount Property

The count of error records.

Public ReadOnly Property ErrorCount As Integer
public int ErrorCount {get;}

IErrorCollection.ErrorDescription Property

The description of the specified error record.

Public Function get_ErrorDescription ( _
    ByVal Index As Integer _
) As String
public string get_ErrorDescription (
    int Index
);

Classes that implement IErrorCollection

Classes Description

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.

You can no longer sign into this site. Go to your ArcGIS portal or the ArcGIS Location Platform dashboard to perform management tasks.

Your ArcGIS portal

Create, manage, and access API keys and OAuth 2.0 developer credentials, hosted layers, and data services.

Your ArcGIS Location Platform dashboard

Manage billing, monitor service usage, and access additional resources.

Learn more about these changes in the What's new in Esri Developers June 2024 blog post.

Close