Index: Ringtoets/Piping/src/Ringtoets.Piping.Data/PipingFailureMechanismSectionResultAssemblyFactory.cs
===================================================================
diff -u -r4e9e1bc4a1133138ee51c3a62a885010832f6d7f -r80d36751940e21e14d24b16e6c6e62bcd6615fcd
--- Ringtoets/Piping/src/Ringtoets.Piping.Data/PipingFailureMechanismSectionResultAssemblyFactory.cs (.../PipingFailureMechanismSectionResultAssemblyFactory.cs) (revision 4e9e1bc4a1133138ee51c3a62a885010832f6d7f)
+++ Ringtoets/Piping/src/Ringtoets.Piping.Data/PipingFailureMechanismSectionResultAssemblyFactory.cs (.../PipingFailureMechanismSectionResultAssemblyFactory.cs) (revision 80d36751940e21e14d24b16e6c6e62bcd6615fcd)
@@ -238,7 +238,7 @@
/// The failure mechanism section results to
/// get the assembly for.
/// The calculation scenarios belonging to this failure mechanism.
- /// The failure mechanism this to assemble for.
+ /// The failure mechanism to assemble for.
/// The the failure mechanism belongs to.
/// Indicator whether the manual assembly should be used in the assembly.
/// A .
@@ -305,14 +305,10 @@
return calculator.AssembleFailureMechanism(sectionAssemblies, assemblyCategoriesInput);
}
- catch (FailureMechanismSectionAssemblyCalculatorException e)
+ catch (Exception e) when (e is FailureMechanismAssemblyCalculatorException || e is FailureMechanismSectionAssemblyCalculatorException)
{
throw new AssemblyException(e.Message, e);
}
- catch (FailureMechanismAssemblyCalculatorException e)
- {
- throw new AssemblyException(e.Message, e);
- }
}
private static AssemblyCategoriesInput CreateAssemblyCategoriesInput(PipingFailureMechanism failureMechanism,