10 references to ArgumentException
Microsoft.Extensions.AI.Abstractions (10)
ChatCompletion\ChatResponseFormatJson.cs (1)
26Throw.ArgumentException(
Contents\DataContent.cs (1)
113Throw.ArgumentException(nameof(mediaType), "Invalid media type.");
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");