using System; namespace MxGateway.Worker.MxAccess; public sealed class MxAccessEventQueueOverflowException : Exception { /// /// Initializes a new instance of . /// /// Queue capacity. public MxAccessEventQueueOverflowException(int capacity) : base($"MXAccess outbound event queue reached its configured capacity of {capacity}.") { Capacity = capacity; } /// /// Gets the queue capacity. /// public int Capacity { get; } }