-
-
Notifications
You must be signed in to change notification settings - Fork 732
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to handle the exceptions. #253
Comments
catch the |
it´s kind of strange how often this question is asked is there a problem https://github.com/paulcbetts/refit#user-content-retrieving-the-response [Get("/users/{user}")] On Tue, 2 Aug 2016 at 09:44 mrjbcs0811 notifications@github.com wrote:
|
May be we should make this clearer. But how? On Tue, 2 Aug 2016 at 09:54 Ahmed Alejo adebunky@gmail.com wrote:
|
A question to HttpResponseMessage: If I use the HttpResponseMessage as return type, then I have to do all the status code handling and the deserialization of the JSON content by myself, right? Refit doesn't offer some handy methods for this? |
@KarinBerg Yes - if your interface method returns If you catch |
How to handle the exceptions using refit in UWP10?
like Response status code does not indicate success: 401 (Unauthorized) directly goes to catch block.
which can have a callback if we want to do something.
How to get the whole HttpResponseMessage object not only the result.
The text was updated successfully, but these errors were encountered: