Changeset 18044 for branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface/Converters/RegressionProblemDataConverter.cs
- Timestamp:
- 08/16/21 17:16:25 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface/Converters/RegressionProblemDataConverter.cs
r18043 r18044 244 244 245 245 int r = 0; 246 foreach (var callValue in x.Value) { 247 matrix[c][r] = (T)callValue; 246 foreach (var cellValue in x.Value) { 247 try { 248 matrix[c][r] = (T)cellValue; 249 } catch (Exception e) { 250 throw new AggregateException($"The cell value '{cellValue}' in row {r} cannot be converted to {typeof(T).FullName}.", e); 251 } 248 252 ++r; 249 253 }
Note: See TracChangeset
for help on using the changeset viewer.