| IExceptionManagerById Method |
Retrieves a specific exception by its unique identifier
Namespace:
EdaIntegrationContract.Exceptions
Assembly:
EdaIntegration.Contract (in EdaIntegration.Contract.dll) Version: 1.0
Syntax IExceptionItem ById(
int id
)
Parameters
- id
- Type: SystemInt32
The unique identifier of the custodian to find
Return Value
Type:
IExceptionItemThe
IExceptionItem with the supplied unique identifier
Exceptions Exception | Condition |
---|
EdaApiException | Thrown if an exception cannot be found with the specified Id |
Examples
The following example demonstrates retrieving an exception using its id.
using EdaIntegrationContract;
using EdaIntegrationContract.Case;
using EdaIntegrationContract.Exceptions;
class Sample
{
static void Main()
{
var edaIntegration = new EdaIntegration().ConnectToExplore();
ICase edaCase = edaIntegration.Cases.OpenCaseByName("Case 1");
IExceptionItem exception = edaCase.Exceptions.ById(3);
Console.WriteLine("Id: {0}, Doc Id: {1} Message: {2}", exception.Id, exception.DocumentId, exception.Message);
}
}
See Also