Click or drag to resize

IExportErrorManagerAll Method

Retrieves the list of errors that occurred when exporting documents for this export.

Namespace:  EdaIntegrationContract.Exports
Assembly:  EdaIntegration.Contract (in EdaIntegration.Contract.dll) Version: 7.6
Syntax
C#
IEnumerable<IExportError> All(
	IExceptionFilter filter = null
)

Parameters

filter (Optional)
Type: EdaIntegrationContract.ExceptionsIExceptionFilter
An optional filter

Return Value

Type: IEnumerableIExportError
A list of IExportErrors. If no errors exist then an empty list is returned.
Examples
The following example demonstrates retrieving the errors for an export.
C#
using EdaIntegrationContract;
using EdaIntegrationContract.Case;
using EdaIntegrationContract.Exports;

class Sample
{
    static void Main()
    {
        var edaIntegration = new EdaIntegration().ConnectToExplore();

        // Get the export
        ICase edaCase = edaIntegration.Cases.OpenCaseByName("Case 1");
        IExport export = edaCase.Exports.ByName("Export-001"); 

        foreach (IExportError error in export.Errors.All())
        {
            Console.WriteLine("Id: {0}", error.Id);
            Console.WriteLine("Message: {0}", error.Message);
            Console.WriteLine("Doc Id: {0}", error.DocumentId);
            Console.WriteLine("");
        }
    }
}
/*
This example produces the following results:

Id: 3
Message: Source file not found. \\NetworkDrive\Folder1\Folder2\Documents\samples.pst
Doc Id: 24

Id: 4
Message: Source file not found. \\NetworkDrive\Folder1\Folder2\Documents\samples.pst
Doc Id: 25  
 */
See Also