10 references to ArgumentException
Microsoft.Extensions.AI.Abstractions (10)
ChatCompletion\ChatResponseFormatJson.cs (1)
26
Throw.
ArgumentException
(
Contents\DataContent.cs (1)
113
Throw.
ArgumentException
(nameof(mediaType), "Invalid media type.");
src\Shared\Throw\Throw.cs (8)
81
ArgumentException
(paramName, $"Member {memberName} of {paramName} is null");
114
ArgumentException
(paramName, $"Member {memberName} of {paramName} is null");
150
ArgumentException
(paramName, "Argument is whitespace");
183
ArgumentException
(paramName, "Argument is an empty string");
205
ArgumentException
(paramName, $"Buffer too small, needed a size of {requiredSize} but got {bufferSize}");
269
ArgumentException
(paramName, "Collection is empty");
276
ArgumentException
(paramName, "Collection is empty");
285
ArgumentException
(paramName, "Collection is empty");