11 references to ArgumentException
Microsoft.Extensions.AI (11)
Functions\AIFunctionFactory.cs (3)
198
Throw.
ArgumentException
(nameof(method), "Open generic methods are not supported");
346
Throw.
ArgumentException
(nameof(parameter), "Parameter is missing a name.");
354
Throw.
ArgumentException
(nameof(parameter), $"Only one {nameof(AIFunctionContext)} parameter is permitted.");
src\Shared\Throw\Throw.cs (8)
81
ArgumentException
(paramName, $"Member {memberName} of {paramName} is null");
114
ArgumentException
(paramName, $"Member {memberName} of {paramName} is null");
150
ArgumentException
(paramName, "Argument is whitespace");
183
ArgumentException
(paramName, "Argument is an empty string");
205
ArgumentException
(paramName, $"Buffer too small, needed a size of {requiredSize} but got {bufferSize}");
269
ArgumentException
(paramName, "Collection is empty");
276
ArgumentException
(paramName, "Collection is empty");
285
ArgumentException
(paramName, "Collection is empty");