Index: Ringtoets/Piping/src/Ringtoets.Piping.IO/Builders/SoilProfileBuilder1D.cs
===================================================================
diff -u -r069921ae1e06e13d8e5e19dd9caa5e8f7b9e1f35 -rd2b5b334c49948fa49297a1d24c13bc98aa6ee1e
--- Ringtoets/Piping/src/Ringtoets.Piping.IO/Builders/SoilProfileBuilder1D.cs (.../SoilProfileBuilder1D.cs) (revision 069921ae1e06e13d8e5e19dd9caa5e8f7b9e1f35)
+++ Ringtoets/Piping/src/Ringtoets.Piping.IO/Builders/SoilProfileBuilder1D.cs (.../SoilProfileBuilder1D.cs) (revision d2b5b334c49948fa49297a1d24c13bc98aa6ee1e)
@@ -7,7 +7,7 @@
///
/// Helps in the creation of a .
///
- public class SoilProfileBuilder1D
+ internal class SoilProfileBuilder1D
{
private readonly Collection layers;
private readonly string name;
@@ -24,10 +24,17 @@
/// Creates a new instances of the based on the layer definitions.
///
/// A new .
- /// Thrown when no layers have been added through .
- public PipingSoilProfile Build()
+ /// Thrown when no layers have been added through .
+ internal PipingSoilProfile Build()
{
- return new PipingSoilProfile(name, bottom, layers);
+ try
+ {
+ return new PipingSoilProfile(name, bottom, layers);
+ }
+ catch (ArgumentException e)
+ {
+ throw new SoilProfileBuilderException(e.Message, e);
+ }
}
///