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