GetFromJsonAsync should have proper list of thrown exceptions #10732
Labels
area-System.Text.Json
Pri3
Indicates issues/PRs that are low priority
untriaged
New issue has not been triaged by the area owner
Describe the issue or suggestion
Currently,
httpClient.GetFromJsonAsync
documentation shows, that the only one thrown exception isOperationCancelledException
.But it's not true and there is at least
HttpRequestException
which contains status code.And might be
JsonException
as well.I think, it would be quite useful to include more exceptions into the docs.
Why this was inconvenient for me - I can't write proper resiliency policies because I don't know the excections, which are thrown by default.
The text was updated successfully, but these errors were encountered: