LotSizingDataModel.Checker 2.0.1
Reusable validation engine for structural, mathematical and objective consistency checks.
Loading...
Searching...
No Matches
SolutionScientificProvenanceDiagnostic.cs
Go to the documentation of this file.
2
3/// <summary>
4/// Structured scientific solution-provenance diagnostic.
5/// </summary>
7{
9 string code,
11 string path,
12 string message)
13 {
14 if (string.IsNullOrWhiteSpace(code))
15 {
16 throw new ArgumentException(
17 "A provenance diagnostic code is required.",
18 nameof(code));
19 }
20
21 Code = code.Trim();
22 Severity = severity;
23 Path = path ?? string.Empty;
24 Message = message ?? string.Empty;
25 }
26
27 public string Code { get; }
29 public string Path { get; }
30 public string Message { get; }
31
32 public bool IsError =>
33 Severity ==
35}
SolutionScientificProvenanceDiagnostic(string code, SolutionScientificProvenanceDiagnosticSeverity severity, string path, string message)