LotSizingDataModel.Checker 2.0.1
Reusable validation engine for structural, mathematical and objective consistency checks.
Loading...
Searching...
No Matches
MathematicalFeasibilityDiagnostic.cs
Go to the documentation of this file.
2
4{
6 string code,
7 string message)
8 {
9 if (string.IsNullOrWhiteSpace(code) ||
10 string.IsNullOrWhiteSpace(message))
11 {
12 throw new ArgumentException(
13 "Feasibility diagnostics require code and message.");
14 }
15
16 Code = code.Trim();
17 Message = message.Trim();
18 }
19
20 public string Code { get; }
21 public string Message { get; }
22}