Index: Ringtoets/Common/src/Ringtoets.Common.IO/Structures/StructuresCharacteristicsCsvReader.cs =================================================================== diff -u -rac96d7c315129af851634ed5a4a6800b59ede718 -rb9e640cceb967cc24e3999c373ddb5040e59a1f0 --- Ringtoets/Common/src/Ringtoets.Common.IO/Structures/StructuresCharacteristicsCsvReader.cs (.../StructuresCharacteristicsCsvReader.cs) (revision ac96d7c315129af851634ed5a4a6800b59ede718) +++ Ringtoets/Common/src/Ringtoets.Common.IO/Structures/StructuresCharacteristicsCsvReader.cs (.../StructuresCharacteristicsCsvReader.cs) (revision b9e640cceb967cc24e3999c373ddb5040e59a1f0) @@ -30,7 +30,7 @@ using Core.Common.Util.Builders; using Core.Common.Util.Extensions; using Ringtoets.Common.IO.Properties; -using CoreCommonUtilsResources = Core.Common.Util.Properties.Resources; +using CoreCommonUtilResources = Core.Common.Util.Properties.Resources; namespace Ringtoets.Common.IO.Structures { @@ -198,11 +198,11 @@ } catch (OutOfMemoryException e) { - throw CreateCriticalFileReadException(currentLine, CoreCommonUtilsResources.Error_Line_too_big_for_RAM, e); + throw CreateCriticalFileReadException(currentLine, CoreCommonUtilResources.Error_Line_too_big_for_RAM, e); } catch (IOException e) { - string errorMessage = string.Format(CoreCommonUtilsResources.Error_General_IO_ErrorMessage_0_, + string errorMessage = string.Format(CoreCommonUtilResources.Error_General_IO_ErrorMessage_0_, e.Message); string fullErrorMessage = new FileReaderErrorMessageBuilder(filePath).Build(errorMessage); throw new CriticalFileReadException(fullErrorMessage, e); @@ -240,7 +240,7 @@ string header = ReadLineAndHandleIOExceptions(reader, lineNumber); if (header == null) { - throw CreateCriticalFileReadException(lineNumber, CoreCommonUtilsResources.Error_File_empty); + throw CreateCriticalFileReadException(lineNumber, CoreCommonUtilResources.Error_File_empty); } return header.Split(separator) @@ -537,7 +537,7 @@ /// New with message set. private LineParseException CreateLineParseException(int currentLine, string lineParseErrorMessage, Exception innerException = null) { - string locationDescription = string.Format(CoreCommonUtilsResources.TextFile_On_LineNumber_0_, + string locationDescription = string.Format(CoreCommonUtilResources.TextFile_On_LineNumber_0_, currentLine); string message = new FileReaderErrorMessageBuilder(filePath).WithLocation(locationDescription) .Build(lineParseErrorMessage); @@ -553,7 +553,7 @@ /// New with message set. private CriticalFileReadException CreateCriticalFileReadException(int currentLine, string criticalErrorMessage, Exception innerException = null) { - string locationDescription = string.Format(CoreCommonUtilsResources.TextFile_On_LineNumber_0_, + string locationDescription = string.Format(CoreCommonUtilResources.TextFile_On_LineNumber_0_, currentLine); string message = new FileReaderErrorMessageBuilder(filePath).WithLocation(locationDescription) .Build(criticalErrorMessage);