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
why is there an EnsureSuccess function added to the clients in this commit? 59fe0c6 In some servers you get an error response when no data is found (404) or a malformed request is made (403). It's not possible any more to use these services with this project. What is other people's opinion about this? Remove the ensuresuccess function?
The text was updated successfully, but these errors were encountered:
The reason for this is to handle the applicable response accordingly by wrapping the call in a try/catch. If the server returns any status 5XX and 4XX it suggests a server or client error respectively and this should then be handled in the appropriate catch block. This mainly prevents a whole lot of 'if' operations.
why is there an EnsureSuccess function added to the clients in this commit? 59fe0c6 In some servers you get an error response when no data is found (404) or a malformed request is made (403). It's not possible any more to use these services with this project. What is other people's opinion about this? Remove the ensuresuccess function?
The text was updated successfully, but these errors were encountered: