Index: Ringtoets/AssemblyTool/src/Ringtoets.AssemblyTool.IO/Model/SerializableFailureMechanismSectionCollection.cs =================================================================== diff -u -r1f88ea122db66685810334df995c5ce69f164752 -ra30b67748bed77736f62b6b3c30c82649bb9cf4e --- Ringtoets/AssemblyTool/src/Ringtoets.AssemblyTool.IO/Model/SerializableFailureMechanismSectionCollection.cs (.../SerializableFailureMechanismSectionCollection.cs) (revision 1f88ea122db66685810334df995c5ce69f164752) +++ Ringtoets/AssemblyTool/src/Ringtoets.AssemblyTool.IO/Model/SerializableFailureMechanismSectionCollection.cs (.../SerializableFailureMechanismSectionCollection.cs) (revision a30b67748bed77736f62b6b3c30c82649bb9cf4e) @@ -40,7 +40,8 @@ /// /// The unique ID of the sections. /// The failure mechanism the sections belong to. - /// Thrown when any parameter is null. + /// Thrown when is null or empty. + /// Thrown when parameter is null. public SerializableFailureMechanismSectionCollection(string id, SerializableFailureMechanism failureMechanism) : this(id) @@ -58,7 +59,8 @@ /// /// The unique ID of the sections. /// The total assembly result the sections belong to. - /// Thrown when any parameter is null. + /// Thrown when is null or empty. + /// Thrown when parameter is null. public SerializableFailureMechanismSectionCollection(string id, SerializableTotalAssemblyResult totalAssemblyResult) : this(id) @@ -75,12 +77,12 @@ /// Creates a new instance of . /// /// The unique ID of the sections. - /// Thrown when is null. + /// Thrown when is null or empty. private SerializableFailureMechanismSectionCollection(string id) { - if (id == null) + if (string.IsNullOrEmpty(id)) { - throw new ArgumentNullException(nameof(id)); + throw new ArgumentException($@"'{nameof(id)}' must have a value."); } Id = id;