🩹 Improve exception-throwing

pull/52/head
Alexis Drai 3 years ago
parent 86597ef08f
commit 180c50b2c7

@ -1,5 +1,4 @@
using System; using System;
using System.Xml.Linq;
namespace Model namespace Model
{ {
@ -20,7 +19,7 @@ namespace Model
{ {
Name = name.Trim(); Name = name.Trim();
} }
else throw new ArgumentException("player name may never be empty or null"); else throw new ArgumentException("param should not be null or blank", nameof(name));
} }
/// <summary> /// <summary>

Loading…
Cancel
Save