Index: Ringtoets/ClosingStructures/src/Ringtoets.ClosingStructures.Service/ClosingStructuresCalculationService.cs =================================================================== diff -u -r3023413fe1c0f6dd469e8d16f3a6ebf25adac5da -r36b96f02b3c5983419db8ca336a5ff00d9e7fdda --- Ringtoets/ClosingStructures/src/Ringtoets.ClosingStructures.Service/ClosingStructuresCalculationService.cs (.../ClosingStructuresCalculationService.cs) (revision 3023413fe1c0f6dd469e8d16f3a6ebf25adac5da) +++ Ringtoets/ClosingStructures/src/Ringtoets.ClosingStructures.Service/ClosingStructuresCalculationService.cs (.../ClosingStructuresCalculationService.cs) (revision 36b96f02b3c5983419db8ca336a5ff00d9e7fdda) @@ -19,8 +19,8 @@ // Stichting Deltares and remain full property of Stichting Deltares at all times. // All rights reserved. -using System; using System.Collections.Generic; +using System.ComponentModel; using System.IO; using System.Linq; using log4net; @@ -61,7 +61,7 @@ /// The that holds the information about the contribution /// and the general inputs used in the calculation. /// The filepath of the HLCD file that should be used for performing the calculation. - /// Thrown when is an invalid + /// Thrown when is an invalid /// . public void Calculate(StructuresCalculation calculation, IAssessmentSection assessmentSection, @@ -147,7 +147,9 @@ input = CreateFloodedCulvertCalculationInput(calculation, failureMechanismSection, failureMechanism.GeneralInput); break; default: - throw new NotSupportedException("ClosingStructureInflowModelType"); + throw new InvalidEnumArgumentException("calculation", + (int) calculation.InputParameters.InflowModelType, + typeof(ClosingStructureInflowModelType)); } return input; }