Skip to content

Commit

Permalink
perf: optimize exception type
Browse files Browse the repository at this point in the history
  • Loading branch information
AElfBourneShi committed Oct 19, 2024
1 parent eb4df67 commit 04e5814
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ private void CheckTermsArrayLength(ConstantExpression constantExpression)
var count = objectList.Cast<object>().Count();
if (count > _elasticsearchOptions.TermsArrayMaxLength)
{
throw new Exception(
throw new ArgumentException(
$"The array input for Terms query is too large, exceeding {_elasticsearchOptions.TermsArrayMaxLength} items.");
}
}
Expand Down

0 comments on commit 04e5814

Please sign in to comment.