com.esri.arcgis.system
Interface IErrorCollection

All Superinterfaces:
Serializable
All Known Implementing Classes:
IErrorCollectionProxy

public interface IErrorCollection
extends Serializable

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.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux


Method Summary
 int getErrorCount()
          The count of error records.
 String getErrorDescription(int index)
          The description of the specified error record.
 

Method Detail

getErrorCount

int getErrorCount()
                  throws IOException,
                         AutomationException
The count of error records.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Returns:
The count
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getErrorDescription

String getErrorDescription(int index)
                           throws IOException,
                                  AutomationException
The description of the specified error record.

Product Availability

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

Parameters:
index - The index (in)
Returns:
The description
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.