12 references to ArgumentException
Microsoft.Extensions.Telemetry (12)
Latency\Internal\LatencyContextRegistrySet.cs (1)
56Throw.ArgumentException(nameof(names), "Found null or whitespace name in supplied set");
Latency\Internal\Registry.cs (2)
38Throw.ArgumentException(nameof(keys), "Supplied set contains null values"); 74Throw.ArgumentException(nameof(key), $"Name {key} has not been registered.");
Logging\ExtendedLoggerFactory.cs (1)
55Throw.ArgumentException($"{_factoryOptions.ActivityTrackingOptions} is invalid ActivityTrackingOptions value.", nameof(factoryOptions));
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");