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