Commit 1e45033
authored
[Mono.Android] Wrap connection exceptions in HttpRequestException (#7661)
Fixes: #7629
Whenever a Java backend connection fails for any reason, wrap the
thrown exception in `HttpRequestException` as described in the
[`HttpClient.SendAsync()` documentation][0].
[0]: https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpclient.sendasync?view=net-7.0#system-net-http-httpclient-sendasync(system-net-http-httprequestmessage)1 parent c1752ca commit 1e45033
File tree
2 files changed
+10
-2
lines changed- src/Mono.Android/Xamarin.Android.Net
- tests/Mono.Android-Tests/Xamarin.Android.Net
2 files changed
+10
-2
lines changedLines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
494 | 494 | | |
495 | 495 | | |
496 | 496 | | |
497 | | - | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
498 | 502 | | |
499 | 503 | | |
500 | 504 | | |
| |||
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
142 | | - | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
143 | 146 | | |
144 | 147 | | |
145 | 148 | | |
| 149 | + | |
146 | 150 | | |
147 | 151 | | |
148 | 152 | | |
0 commit comments