} // Required by EF Core public DeadlineOptions(bool tracksTgt, bool tracksDate, bool isRecurr, DeadlineTarget tgt, decimal warningTgtThres = 10, int warningDateThreshInDays = 10) { DeadlineId = Guid.Empty; // Must be set by the owning Deadline TracksTarget = tracksTgt; TracksDate = tracksDate; IsRecurring = isRecurr; Target = tgt; WarningTgtThresh = warningTgtThres; WarningDateThreshInDays = warningDateThreshInDays; // Wait for Deadline to perform validation }
public InvalidTargetException(string aircraftId, DeadlineTarget tgt) : base($"Attempted to point a Deadline to an invalid time meter. Aircraft: {aircraftId} Invalid target: {tgt}.") { }