Click or drag to resize

ExportErrorManagerById Method

Retrieves a specific error for an export.

Namespace:  Law.EdaIntegration.Exports
Assembly:  Law.EdaIntegration (in Law.EdaIntegration.dll) Version: 7.3
Syntax
C#
public ExportError ById(
	int exportErrorId
)

Parameters

exportErrorId
Type: SystemInt32
The unique identifier of the export error to retrieve.

Return Value

Type: ExportError
The requested ExportError
Exceptions
ExceptionCondition
EdaApiExceptionThrown if the error does not exist
Examples
The following example demonstrates retrieving a specific error 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");

        ExportError error = export.Errors.ById(4);
        Console.WriteLine("Id: {0}", error.Id);
        Console.WriteLine("Message: {0}", error.Message);
        Console.WriteLine("Doc Id: {0}", error.DocumentId);
    }
}
/*
This example produces the following results:

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