namespace AVEVA.Historian.Client.Redundancy;
///
/// Thrown by a read when every member failed the operation.
/// The per-member failures are aggregated in (an
/// ).
///
public sealed class HistorianAllMembersFailedException : Exception
{
public HistorianAllMembersFailedException(string operation, IReadOnlyList failures)
: base($"All historian members failed the '{operation}' operation.", new AggregateException(failures))
{
Operation = operation;
}
/// The orchestrated operation that failed across all members.
public string Operation { get; }
}