namespace ZB.MOM.WW.OtOpcUa.Core.ScriptedAlarms; /// /// #952: an operator command (acknowledge, confirm, shelve, enable/disable, comment) whose cancellation token fired /// while it was still waiting for the engine's evaluation gate — typically queued behind a long /// . The command never ran: nothing was looked up, applied or persisted, so /// it is definitely NOT applied (unlike a cancellation inside the store save, which may have committed and stays a /// plain ). /// /// Derives from so a caller that only knows "cancelled" is unchanged. public sealed class ScriptedAlarmCommandNotStartedException : OperationCanceledException { /// Creates the exception for . /// The alarm the command was for. /// The cancellation observed while waiting for the gate. public ScriptedAlarmCommandNotStartedException(string alarmId, OperationCanceledException inner) : base($"Command for alarm {alarmId} was cancelled before the scripted-alarm engine started it; nothing was applied.", inner, inner.CancellationToken) => AlarmId = alarmId; /// The alarm the command was for. public string AlarmId { get; } }