Index: Ringtoets/Common/src/Ringtoets.Common.IO/SoilProfile/StochasticSoilModelReader.cs =================================================================== diff -u -rb5b6d7551427fbbf7f5d0b496c1138893cb52f7a -r712da6c28f4791abfecb52200bb9f397d400f081 --- Ringtoets/Common/src/Ringtoets.Common.IO/SoilProfile/StochasticSoilModelReader.cs (.../StochasticSoilModelReader.cs) (revision b5b6d7551427fbbf7f5d0b496c1138893cb52f7a) +++ Ringtoets/Common/src/Ringtoets.Common.IO/SoilProfile/StochasticSoilModelReader.cs (.../StochasticSoilModelReader.cs) (revision 712da6c28f4791abfecb52200bb9f397d400f081) @@ -26,7 +26,6 @@ using Core.Common.Base.IO; using Core.Common.IO.Readers; using Core.Common.Utils.Builders; -using log4net; using Ringtoets.Common.IO.Exceptions; using Ringtoets.Common.IO.Properties; using Ringtoets.Common.IO.SoilProfile.Schema; @@ -41,8 +40,6 @@ private readonly Dictionary soilProfile1Ds = new Dictionary(); private readonly Dictionary soilProfile2Ds = new Dictionary(); - private readonly ILog log = LogManager.GetLogger(typeof(StochasticSoilModelReader)); - private IDataReader dataReader; private SegmentPointReader segmentPointReader; private long currentStochasticSoilModelId = -1; @@ -163,9 +160,7 @@ } catch (SoilProfileReadException e) { - string message = string.Format(Resources.StochasticSoilModelReader_Error_reading_profile_Error_profile_skipped, - e.Message); - log.Warn(message, e); + throw new StochasticSoilModelException(e.Message, e); } } } @@ -188,9 +183,7 @@ } catch (SoilProfileReadException e) { - string message = string.Format(Resources.StochasticSoilModelReader_Error_reading_profile_Error_profile_skipped, - e.Message); - log.Warn(message, e); + throw new StochasticSoilModelException(e.Message, e); } } }