Index: Ringtoets/Piping/src/Ringtoets.Piping.Data/PipingProbabilityAssessmentInput.cs
===================================================================
diff -u -r7cdb9b163cf993d91a002ed13d17da295a910c6e -r84c39f809b6fda9caf5115ed1af9f65487915f12
--- Ringtoets/Piping/src/Ringtoets.Piping.Data/PipingProbabilityAssessmentInput.cs (.../PipingProbabilityAssessmentInput.cs) (revision 7cdb9b163cf993d91a002ed13d17da295a910c6e)
+++ Ringtoets/Piping/src/Ringtoets.Piping.Data/PipingProbabilityAssessmentInput.cs (.../PipingProbabilityAssessmentInput.cs) (revision 84c39f809b6fda9caf5115ed1af9f65487915f12)
@@ -65,7 +65,7 @@
}
///
- /// Gets 'a' parameter used to factor in the 'length effect' when determining the
+ /// Gets or sets 'a' parameter used to factor in the 'length effect' when determining the
/// maximum tolerated probability of failure.
///
public double A
@@ -86,8 +86,10 @@
}
///
- /// Gets the critical safety factor to which the calculated uplift stability factor is compared.
+ /// Gets or sets the critical safety factor to which the calculated uplift stability factor is compared.
///
+ /// Thrown when the rounded is outside
+ /// range (0, 50].
public RoundedDouble UpliftCriticalSafetyFactor
{
get
@@ -99,7 +101,9 @@
var roundedValue = new RoundedDouble(upliftCriticalSafetyFactor.NumberOfDecimalPlaces, value);
if (roundedValue <= 0 || roundedValue > 50)
{
- throw new ArgumentException(Resources.PipingProbabilityAssessmentInput_UpliftCriticalSafetyFactor_Value_must_be_in_range_zero_and_fifty);
+ throw new ArgumentOutOfRangeException(
+ "value",
+ Resources.PipingProbabilityAssessmentInput_UpliftCriticalSafetyFactor_Value_must_be_in_range_zero_and_fifty);
}
upliftCriticalSafetyFactor = roundedValue;
}