Changeset 17481 for branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/Views/ExportJsonDialog.cs
- Timestamp:
- 03/17/20 17:03:24 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/Views/ExportJsonDialog.cs
r17477 r17481 69 69 // clear all runs 70 70 Optimizer.Runs.Clear(); 71 72 IList<IJsonItem> faultyItems = new List<IJsonItem>(); 73 74 if (!Root.GetValidator().Validate(ref faultyItems)) { 71 72 var validationResult = Root.GetValidator().Validate(); 73 if (!validationResult.Success) { 75 74 IList<Exception> list = new List<Exception>(); 76 75 //print faultyItems 77 foreach (var x in faultyItems) {78 list.Add(new Exception( $"Combination of value and range is not valid for {x.Name}"));76 foreach (var x in validationResult.Errors) { 77 list.Add(new Exception(x)); 79 78 } 80 79 ErrorHandling.ShowErrorDialog(this, new AggregateException(list));
Note: See TracChangeset
for help on using the changeset viewer.