diff --git a/Objects/Objects/BuiltElements/Beam.cs b/Objects/Objects/BuiltElements/Beam.cs index 0f4396ed88..f3c6ceb245 100644 --- a/Objects/Objects/BuiltElements/Beam.cs +++ b/Objects/Objects/BuiltElements/Beam.cs @@ -145,8 +145,10 @@ internal set { archicadLevel = value as ArchicadLevel; } - - throw new ArgumentException($"Expected object of type {nameof(ArchicadLevel)}"); + else + { + throw new ArgumentException($"Expected object of type {nameof(ArchicadLevel)}"); + } } } diff --git a/Objects/Objects/BuiltElements/Column.cs b/Objects/Objects/BuiltElements/Column.cs index b0ef02c697..500ffb4dc2 100644 --- a/Objects/Objects/BuiltElements/Column.cs +++ b/Objects/Objects/BuiltElements/Column.cs @@ -171,8 +171,10 @@ internal set { archicadLevel = value as ArchicadLevel; } - - throw new ArgumentException($"Expected object of type {nameof(ArchicadLevel)}"); + else + { + throw new ArgumentException($"Expected object of type {nameof(ArchicadLevel)}"); + } } } diff --git a/Objects/Objects/BuiltElements/Floor.cs b/Objects/Objects/BuiltElements/Floor.cs index 3fcdf4c837..877cbf136d 100644 --- a/Objects/Objects/BuiltElements/Floor.cs +++ b/Objects/Objects/BuiltElements/Floor.cs @@ -107,8 +107,10 @@ internal set { archicadLevel = value as ArchicadLevel; } - - throw new ArgumentException($"Expected object of type {nameof(ArchicadLevel)}"); + else + { + throw new ArgumentException($"Expected object of type {nameof(ArchicadLevel)}"); + } } } diff --git a/Objects/Objects/BuiltElements/Roof.cs b/Objects/Objects/BuiltElements/Roof.cs index 02979d3766..503f968544 100644 --- a/Objects/Objects/BuiltElements/Roof.cs +++ b/Objects/Objects/BuiltElements/Roof.cs @@ -157,8 +157,10 @@ internal set { archicadLevel = value as ArchicadLevel; } - - throw new ArgumentException($"Expected object of type {nameof(ArchicadLevel)}"); + else + { + throw new ArgumentException($"Expected object of type {nameof(ArchicadLevel)}"); + } } } diff --git a/Objects/Objects/BuiltElements/Wall.cs b/Objects/Objects/BuiltElements/Wall.cs index a5dd9d358b..4a22055703 100644 --- a/Objects/Objects/BuiltElements/Wall.cs +++ b/Objects/Objects/BuiltElements/Wall.cs @@ -312,8 +312,10 @@ internal set { archicadLevel = value as ArchicadLevel; } - - throw new ArgumentException($"Expected object of type {nameof(ArchicadLevel)}"); + else + { + throw new ArgumentException($"Expected object of type {nameof(ArchicadLevel)}"); + } } }