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