You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add missing exception info for HttpClient and SocketsHttpHandler properties (dotnet#11043)
Harmonize the exception docs with the actual implementation for HttpClient and SocketsHttpHandler properties.
---------
Co-authored-by: Genevieve Warren <[email protected]>
Copy file name to clipboardExpand all lines: xml/System.Net.Http/HttpClient.xml
+14-2Lines changed: 14 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -276,6 +276,9 @@ The specified `handler` will be disposed of by calling [HttpClient.Dispose](xref
276
276
277
277
]]></format>
278
278
</remarks>
279
+
<exceptioncref="T:System.ArgumentException">The <seecref="T:System.Uri" /> specified is not an absolute URI.</exception>
280
+
<exceptioncref="T:System.InvalidOperationException">The <seecref="T:System.Net.Http.HttpClient" /> instance has already started one or more requests.</exception>
281
+
<exceptioncref="T:System.ObjectDisposedException">The <seecref="T:System.Net.Http.HttpClient" /> instance has already been disposed.</exception>
279
282
</Docs>
280
283
</Member>
281
284
<MemberMemberName="CancelPendingRequests">
@@ -508,6 +511,8 @@ The `DefaultRequestVersion` property can be changed as long as the <xref:System.
508
511
This property has no effect on any of the <xref:System.Net.Http.HttpClient.Send%2A> or <xref:System.Net.Http.HttpClient.SendAsync%2A> overloads that accept an <xref:System.Net.Http.HttpRequestMessage?displayProperty=nameWithType>.
509
512
]]></format>
510
513
</remarks>
514
+
<exceptioncref="T:System.InvalidOperationException">The <seecref="T:System.Net.Http.HttpClient" /> instance has already started one or more requests.</exception>
515
+
<exceptioncref="T:System.ObjectDisposedException">The <seecref="T:System.Net.Http.HttpClient" /> instance has already been disposed.</exception>
511
516
</Docs>
512
517
</Member>
513
518
<MemberGroupMemberName="DeleteAsync">
@@ -2349,7 +2354,10 @@ The <paramref name="requestUri" /> is not an absolute URI.
2349
2354
2350
2355
]]></format>
2351
2356
</remarks>
2352
-
<exceptioncref="T:System.ArgumentOutOfRangeException">The size specified is less than or equal to zero.</exception>
2357
+
<exceptioncref="T:System.ArgumentOutOfRangeException">The size specified is less than or equal to zero
2358
+
-or-
2359
+
2360
+
The size specified is greater than the maximum allowed buffer size.</exception>
2353
2361
<exceptioncref="T:System.InvalidOperationException">An operation has already been started on the current instance.</exception>
2354
2362
<exceptioncref="T:System.ObjectDisposedException">The current instance has been disposed.</exception>
<exceptioncref="T:System.ArgumentOutOfRangeException">The timeout specified is less than or equal to zero and is not <seecref="F:System.Threading.Timeout.InfiniteTimeSpan" />.</exception>
3731
+
<exceptioncref="T:System.ArgumentOutOfRangeException">The timeout specified is less than or equal to zero and is not <seecref="F:System.Threading.Timeout.InfiniteTimeSpan" />
3732
+
3733
+
-or-
3734
+
3735
+
The timeout specified is greater than <seecref="F:System.Int32.MaxValue" /> milliseconds.</exception>
3724
3736
<exceptioncref="T:System.InvalidOperationException">An operation has already been started on the current instance.</exception>
3725
3737
<exceptioncref="T:System.ObjectDisposedException">The current instance has been disposed.</exception>
0 commit comments