Click or drag to resize

ExportErrorManagerAll Method

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

Namespace:  Law.EdaIntegration.Exports
Assembly:  Law.EdaIntegration (in Law.EdaIntegration.dll) Version: 7.3
Syntax
C#
public IEnumerable<ExportError> All(
	ExceptionFilter filter = null
)

Parameters

filter (Optional)
Type: Law.EdaIntegration.ExceptionsExceptionFilter
An optional filter

Return Value

Type: IEnumerableExportError
A list of ExportErrors. If no errors exist then an empty list is returned.
Examples
The following example demonstrates retrieving the errors for an export.
C#
using Law.EdaIntegration;

class Sample
{
    public static void Main()
    {
        string connectionString = @"Data Source=localhost;Initial Catalog=EDA_Management;Integrated Security=False;User ID=myUserId;Password=myPassword";
        EdaIntegration edaIntegration = new EdaIntegration();
        edaIntegration.InitializeEnvironment(connectionString);

        Case edaCase = edaIntegration.Cases.OpenCaseByName("Case 1");
        Export export = edaCase.Exports.ByName("Export-001");
        foreach (ExportError 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