16 references to ArgumentException
Microsoft.Extensions.AI (16)
Functions\AIFunctionFactory.cs (8)
523
Throw.
ArgumentException
(nameof(method), "Open generic methods are not supported");
551
Throw.
ArgumentException
(nameof(method), "Open generic methods are not supported");
556
Throw.
ArgumentException
(nameof(method), "The method must be an instance method.");
562
Throw.
ArgumentException
(nameof(targetType), "The target type must be assignable to the method's declaring type.");
812
Throw.
ArgumentException
(nameof(parameter), "Parameter is missing a name.");
848
Throw.
ArgumentException
(nameof(arguments), $"An {nameof(IServiceProvider)} was not provided for the {parameter.Name} parameter.");
867
Throw.
ArgumentException
(nameof(arguments), $"No service of type '{parameterType}' with key '{keyedAttr.Key}' was found.");
910
Throw.
ArgumentException
(nameof(arguments), $"Missing required parameter '{parameter.Name}' for method '{parameter.Member.Name}'.");
src\Shared\Throw\Throw.cs (8)
82
ArgumentException
(paramName, $"Member {memberName} of {paramName} is null");
115
ArgumentException
(paramName, $"Member {memberName} of {paramName} is null");
151
ArgumentException
(paramName, "Argument is whitespace");
184
ArgumentException
(paramName, "Argument is an empty string");
206
ArgumentException
(paramName, $"Buffer too small, needed a size of {requiredSize} but got {bufferSize}");
270
ArgumentException
(paramName, "Collection is empty");
277
ArgumentException
(paramName, "Collection is empty");
286
ArgumentException
(paramName, "Collection is empty");