13 references to ArgumentException
Microsoft.Extensions.AI.Abstractions (13)
ChatCompletion\ChatResponseFormatJson.cs (1)
25Throw.ArgumentException(
Contents\DataContent.cs (1)
121Throw.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");
Utilities\AIJsonUtilities.cs (2)
50Throw.ArgumentException(nameof(contentType), "The content type must derive from AIContent."); 60Throw.ArgumentException(nameof(contentType), "Cannot register built-in AI content types.");
Utilities\AIJsonUtilities.Schema.cs (1)
144Throw.ArgumentException(paramName ?? "schema", "The schema document must be an object or a boolean value.");