71 / Rest.Fody

A multi-platform REST client powered by Fody, and heavily inspired by paulcbetts's Refit and canton7's RestEase.
MIT License
17 stars 0 forks source link

Add option: ThrowOnInternetError #5

Closed 71 closed 8 years ago

71 commented 8 years ago

Currently, RestException is thrown when a response contains a non-success HttpStatusCode (defined here). If Internet is unavailable, for example, HttpRequestException is thrown.

Setting ThrowOnInternetError will throw a RestException if the task fails.

I thus have to add the property bool IsError to RestException.

71 commented 8 years ago

Here in next commit.