15 references to ArgumentException
Microsoft.Extensions.AI.Abstractions (15)
ChatCompletion\ChatResponseFormatJson.cs (1)
25
Throw.
ArgumentException
(
Contents\DataContent.cs (1)
77
Throw.
ArgumentException
(nameof(uri), "The provided URI is not a data URI.");
Contents\DataUriParser.cs (1)
79
Throw.
ArgumentException
(parameterName, $"An invalid media type was specified: '{mediaType}'");
src\Shared\Throw\Throw.cs (8)
82
ArgumentException
(paramName, $"Member {memberName} of {paramName} is null");
115
ArgumentException
(paramName, $"Member {memberName} of {paramName} is null");
151
ArgumentException
(paramName, "Argument is whitespace");
184
ArgumentException
(paramName, "Argument is an empty string");
206
ArgumentException
(paramName, $"Buffer too small, needed a size of {requiredSize} but got {bufferSize}");
270
ArgumentException
(paramName, "Collection is empty");
277
ArgumentException
(paramName, "Collection is empty");
286
ArgumentException
(paramName, "Collection is empty");
Utilities\AIJsonUtilities.cs (2)
60
Throw.
ArgumentException
(nameof(contentType), "The content type must derive from AIContent.");
165
Throw.
ArgumentException
(nameof(contentType), "Cannot register built-in AI content types.");
Utilities\AIJsonUtilities.Schema.cs (2)
79
Throw.
ArgumentException
(nameof(parameter), "Parameter is missing a name.");
163
Throw.
ArgumentException
(paramName ?? "schema", "The schema document must be an object or a boolean value.");