Skip to content

Commit 00c277e

Browse files
authored
Add annotations for UriFormatException in HttpClient methods (#8451)
1 parent d441233 commit 00c277e

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

xml/System.Net.Http/HttpClient.xml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1007,6 +1007,7 @@ The <paramref name="requestUri" /> is not an absolute URI.
10071007
<exception cref="T:System.InvalidOperationException">The <paramref name="requestUri" /> must be an absolute URI or <see cref="P:System.Net.Http.HttpClient.BaseAddress" /> must be set.</exception>
10081008
<exception cref="T:System.Net.Http.HttpRequestException">The request failed due to an underlying issue such as network connectivity, DNS failure, server certificate validation or timeout.</exception>
10091009
<exception cref="T:System.Threading.Tasks.TaskCanceledException">.NET Core and .NET 5 and later only: The request failed due to timeout.</exception>
1010+
<exception cref="T:System.UriFormatException">The provided request URI is not valid relative or absolute URI.</exception>
10101011
</Docs>
10111012
</Member>
10121013
<Member MemberName="GetAsync">
@@ -1124,6 +1125,7 @@ The <paramref name="requestUri" /> is not an absolute URI.
11241125
<exception cref="T:System.InvalidOperationException">The <paramref name="requestUri" /> must be an absolute URI or <see cref="P:System.Net.Http.HttpClient.BaseAddress" /> must be set.</exception>
11251126
<exception cref="T:System.Net.Http.HttpRequestException">The request failed due to an underlying issue such as network connectivity, DNS failure, server certificate validation or timeout.</exception>
11261127
<exception cref="T:System.Threading.Tasks.TaskCanceledException">.NET Core and .NET 5 and later only: The request failed due to timeout.</exception>
1128+
<exception cref="T:System.UriFormatException">The provided request URI is not valid relative or absolute URI.</exception>
11271129
</Docs>
11281130
</Member>
11291131
<Member MemberName="GetAsync">
@@ -1187,6 +1189,7 @@ The <paramref name="requestUri" /> is not an absolute URI.
11871189
<exception cref="T:System.InvalidOperationException">The <paramref name="requestUri" /> must be an absolute URI or <see cref="P:System.Net.Http.HttpClient.BaseAddress" /> must be set.</exception>
11881190
<exception cref="T:System.Net.Http.HttpRequestException">The request failed due to an underlying issue such as network connectivity, DNS failure, server certificate validation or timeout.</exception>
11891191
<exception cref="T:System.Threading.Tasks.TaskCanceledException">.NET Core and .NET 5 and later only: The request failed due to timeout.</exception>
1192+
<exception cref="T:System.UriFormatException">The provided request URI is not valid relative or absolute URI.</exception>
11901193
</Docs>
11911194
</Member>
11921195
<Member MemberName="GetAsync">
@@ -1364,6 +1367,7 @@ The <paramref name="requestUri" /> is not an absolute URI.
13641367
<exception cref="T:System.InvalidOperationException">The <paramref name="requestUri" /> must be an absolute URI or <see cref="P:System.Net.Http.HttpClient.BaseAddress" /> must be set.</exception>
13651368
<exception cref="T:System.Net.Http.HttpRequestException">The request failed due to an underlying issue such as network connectivity, DNS failure, server certificate validation or timeout.</exception>
13661369
<exception cref="T:System.Threading.Tasks.TaskCanceledException">.NET Core and .NET 5 and later only: The request failed due to timeout.</exception>
1370+
<exception cref="T:System.UriFormatException">The provided request URI is not valid relative or absolute URI.</exception>
13671371
</Docs>
13681372
</Member>
13691373
<Member MemberName="GetAsync">
@@ -1508,6 +1512,7 @@ The <paramref name="requestUri" /> is not an absolute URI.
15081512
<exception cref="T:System.InvalidOperationException">The <paramref name="requestUri" /> must be an absolute URI or <see cref="P:System.Net.Http.HttpClient.BaseAddress" /> must be set.</exception>
15091513
<exception cref="T:System.Net.Http.HttpRequestException">The request failed due to an underlying issue such as network connectivity, DNS failure, server certificate validation or timeout.</exception>
15101514
<exception cref="T:System.Threading.Tasks.TaskCanceledException">.NET Core and .NET 5 and later only: The request failed due to timeout.</exception>
1515+
<exception cref="T:System.UriFormatException">The provided request URI is not valid relative or absolute URI.</exception>
15111516
</Docs>
15121517
</Member>
15131518
<Member MemberName="GetByteArrayAsync">
@@ -1623,6 +1628,7 @@ The <paramref name="requestUri" /> is not an absolute URI.
16231628
</remarks>
16241629
<exception cref="T:System.Net.Http.HttpRequestException">The request failed due to an underlying issue such as network connectivity, DNS failure, server certificate validation (or timeout for .NET Framework only).</exception>
16251630
<exception cref="T:System.Threading.Tasks.TaskCanceledException">.NET Core and .NET 5 and later only: The request failed due to timeout.</exception>
1631+
<exception cref="T:System.UriFormatException">The provided request URI is not valid relative or absolute URI.</exception>
16261632
</Docs>
16271633
</Member>
16281634
<Member MemberName="GetByteArrayAsync">
@@ -1756,6 +1762,7 @@ The <paramref name="requestUri" /> is not an absolute URI.
17561762
<exception cref="T:System.InvalidOperationException">The <paramref name="requestUri" /> must be an absolute URI or <see cref="P:System.Net.Http.HttpClient.BaseAddress" /> must be set.</exception>
17571763
<exception cref="T:System.Net.Http.HttpRequestException">The request failed due to an underlying issue such as network connectivity, DNS failure, server certificate validation (or timeout for .NET Framework only).</exception>
17581764
<exception cref="T:System.Threading.Tasks.TaskCanceledException">.NET Core and .NET 5 and later only: The request failed due to timeout.</exception>
1765+
<exception cref="T:System.UriFormatException">The provided request URI is not valid relative or absolute URI.</exception>
17591766
</Docs>
17601767
</Member>
17611768
<Member MemberName="GetStreamAsync">
@@ -1871,6 +1878,7 @@ The <paramref name="requestUri" /> is not an absolute URI.
18711878
<exception cref="T:System.ArgumentNullException">The <paramref name="requestUri" /> is <see langword="null" />.</exception>
18721879
<exception cref="T:System.Net.Http.HttpRequestException">The request failed due to an underlying issue such as network connectivity, DNS failure, server certificate validation (or timeout for .NET Framework only).</exception>
18731880
<exception cref="T:System.Threading.Tasks.TaskCanceledException">.NET Core and .NET 5 and later only: The request failed due to timeout.</exception>
1881+
<exception cref="T:System.UriFormatException">The provided request URI is not valid relative or absolute URI.</exception>
18741882
</Member>
18751883
<Member MemberName="GetStreamAsync">
18761884
<MemberSignature Language="C#" Value="public System.Threading.Tasks.Task&lt;System.IO.Stream&gt; GetStreamAsync (Uri? requestUri, System.Threading.CancellationToken cancellationToken);" />
@@ -2003,6 +2011,7 @@ The <paramref name="requestUri" /> is not an absolute URI.
20032011
<exception cref="T:System.InvalidOperationException">The <paramref name="requestUri" /> must be an absolute URI or <see cref="P:System.Net.Http.HttpClient.BaseAddress" /> must be set.</exception>
20042012
<exception cref="T:System.Net.Http.HttpRequestException">The request failed due to an underlying issue such as network connectivity, DNS failure, server certificate validation (or timeout for .NET Framework only).</exception>
20052013
<exception cref="T:System.Threading.Tasks.TaskCanceledException">.NET Core and .NET 5 and later only: The request failed due to timeout.</exception>
2014+
<exception cref="T:System.UriFormatException">The provided request URI is not valid relative or absolute URI.</exception>
20062015
</Docs>
20072016
</Member>
20082017
<Member MemberName="GetStringAsync">
@@ -2117,6 +2126,7 @@ The <paramref name="requestUri" /> is not an absolute URI.
21172126
<exception cref="T:System.ArgumentNullException">The <paramref name="requestUri" /> is <see langword="null" />.</exception>
21182127
<exception cref="T:System.Net.Http.HttpRequestException">The request failed due to an underlying issue such as network connectivity, DNS failure, server certificate validation (or timeout for .NET Framework only).</exception>
21192128
<exception cref="T:System.Threading.Tasks.TaskCanceledException">.NET Core and .NET 5 and later only: The request failed due to timeout.</exception>
2129+
<exception cref="T:System.UriFormatException">The provided request URI is not valid relative or absolute URI.</exception>
21202130
</Docs>
21212131
</Member>
21222132
<Member MemberName="GetStringAsync">
@@ -2259,6 +2269,7 @@ The <paramref name="requestUri" /> is not an absolute URI.
22592269
22602270
]]></format>
22612271
</remarks>
2272+
<exception cref="T:System.UriFormatException">The provided request URI is not valid relative or absolute URI.</exception>
22622273
</Docs>
22632274
</Member>
22642275
<Member MemberName="PatchAsync">
@@ -2356,6 +2367,7 @@ The <paramref name="requestUri" /> is not an absolute URI.
23562367
23572368
]]></format>
23582369
</remarks>
2370+
<exception cref="T:System.UriFormatException">The provided request URI is not valid relative or absolute URI.</exception>
23592371
</Docs>
23602372
</Member>
23612373
<Member MemberName="PatchAsync">
@@ -2485,6 +2497,7 @@ The <paramref name="requestUri" /> is not an absolute URI.
24852497
<exception cref="T:System.InvalidOperationException">The <paramref name="requestUri" /> must be an absolute URI or <see cref="P:System.Net.Http.HttpClient.BaseAddress" /> must be set.</exception>
24862498
<exception cref="T:System.Net.Http.HttpRequestException">The request failed due to an underlying issue such as network connectivity, DNS failure, server certificate validation or timeout.</exception>
24872499
<exception cref="T:System.Threading.Tasks.TaskCanceledException">.NET Core and .NET 5 and later only: The request failed due to timeout.</exception>
2500+
<exception cref="T:System.UriFormatException">The provided request URI is not valid relative or absolute URI.</exception>
24882501
</Docs>
24892502
</Member>
24902503
<Member MemberName="PostAsync">
@@ -2608,6 +2621,7 @@ The <paramref name="requestUri" /> is not an absolute URI.
26082621
<exception cref="T:System.InvalidOperationException">The <paramref name="requestUri" /> must be an absolute URI or <see cref="P:System.Net.Http.HttpClient.BaseAddress" /> must be set.</exception>
26092622
<exception cref="T:System.Net.Http.HttpRequestException">The request failed due to an underlying issue such as network connectivity, DNS failure, server certificate validation or timeout.</exception>
26102623
<exception cref="T:System.Threading.Tasks.TaskCanceledException">.NET Core and .NET 5 and later only: The request failed due to timeout.</exception>
2624+
<exception cref="T:System.UriFormatException">The provided request URI is not valid relative or absolute URI.</exception>
26112625
</Docs>
26122626
</Member>
26132627
<Member MemberName="PostAsync">
@@ -2750,6 +2764,7 @@ The <paramref name="requestUri" /> is not an absolute URI.
27502764
<exception cref="T:System.InvalidOperationException">The <paramref name="requestUri" /> must be an absolute URI or <see cref="P:System.Net.Http.HttpClient.BaseAddress" /> must be set.</exception>
27512765
<exception cref="T:System.Net.Http.HttpRequestException">The request failed due to an underlying issue such as network connectivity, DNS failure, server certificate validation or timeout.</exception>
27522766
<exception cref="T:System.Threading.Tasks.TaskCanceledException">.NET Core and .NET 5 and later only: The request failed due to timeout.</exception>
2767+
<exception cref="T:System.UriFormatException">The provided request URI is not valid relative or absolute URI.</exception>
27532768
</Docs>
27542769
</Member>
27552770
<Member MemberName="PutAsync">
@@ -2873,6 +2888,7 @@ The <paramref name="requestUri" /> is not an absolute URI.
28732888
<exception cref="T:System.InvalidOperationException">The <paramref name="requestUri" /> must be an absolute URI or <see cref="P:System.Net.Http.HttpClient.BaseAddress" /> must be set.</exception>
28742889
<exception cref="T:System.Net.Http.HttpRequestException">The request failed due to an underlying issue such as network connectivity, DNS failure, server certificate validation or timeout.</exception>
28752890
<exception cref="T:System.Threading.Tasks.TaskCanceledException">.NET Core and .NET 5 and later only: The request failed due to timeout.</exception>
2891+
<exception cref="T:System.UriFormatException">The provided request URI is not valid relative or absolute URI.</exception>
28762892
</Docs>
28772893
</Member>
28782894
<Member MemberName="PutAsync">

0 commit comments

Comments
 (0)