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