Click or drag to resize

ExceptionManagerById Method

Retrieves a specific exception by its unique identifier

Namespace:  Law.EdaIntegration.Exceptions
Assembly:  Law.EdaIntegration (in Law.EdaIntegration.dll) Version: 7.2
Syntax
C#
public ExceptionItem ById(
	int id
)

Parameters

id
Type: SystemInt32
The unique identifier of the custodian to find

Return Value

Type: ExceptionItem
The ExceptionItem with the supplied unique identifier
Exceptions
ExceptionCondition
EdaApiExceptionThrown if an exception cannot be found with the specified Id
Examples
The following example demonstrates retrieving an exception using its id.
C#
using Law.EdaIntegration;
using Law.EdaIntegration.Case;
using Law.EdaIntegration.Exceptions;

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");
        ExceptionItem exception = edaCase.Exceptions.ById(3);
        Console.WriteLine("Id: {0},  Doc Id: {1}  Message: {2}", exception.Id, exception.DocumentId, exception.Message);
    }
}
/*
This example produces the following results:

Id: 3,  Doc Id: 16  Message: File type could not be identified.
 */
See Also