Skip to content

Commit 8c629c1

Browse files
committed
Used ArgumentException overload
1 parent d8875b6 commit 8c629c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/LinkDotNet.Blog.Domain/Enumeration.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ protected Enumeration(string key)
1616
{
1717
if (string.IsNullOrWhiteSpace(key))
1818
{
19-
throw new ArgumentException("The enum key cannot be null or empty");
19+
throw new ArgumentException("The enum key cannot be null or empty", nameof(key));
2020
}
2121

2222
Key = key;

0 commit comments

Comments
 (0)