Fix exception ctor call.

This commit is contained in:
Antony Corbett
2023-01-26 14:31:44 +00:00
parent 3dcc35be97
commit e15a21ab0e
+1 -1
View File
@@ -31,7 +31,7 @@ namespace QuestPDF.ReportSample
public static string FormatAsRomanNumeral(this int number)
{
if (number < 0 || number > 3999)
throw new ArgumentOutOfRangeException("Number should be in range from 1 to 3999");
throw new ArgumentOutOfRangeException(nameof(number), "Number should be in range from 1 to 3999");
return RomanNumeralCache.GetOrAdd(number, x =>
{