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
Currently RestClient doesn't throw at all. This is by design. This way it's easy to handle non-2XX HTTP status codes. On the flip side, we have to manually handle network errors everywhere. Normally those are thrown right away and never handled by the library. Usually these errors indicate problems like lack of connectivity or DNS failure. No reason to handle this in the lib. Let the app handle it and just throw directly from RestClient. This would also make a lot of tests unneeded.
The text was updated successfully, but these errors were encountered:
Currently
RestClient
doesn't throw at all. This is by design. This way it's easy to handle non-2XX HTTP status codes. On the flip side, we have to manually handle network errors everywhere. Normally those are thrown right away and never handled by the library. Usually these errors indicate problems like lack of connectivity or DNS failure. No reason to handle this in the lib. Let the app handle it and just throw directly fromRestClient
. This would also make a lot of tests unneeded.The text was updated successfully, but these errors were encountered: