pawotter / mastodon-api-cs

The Mastodon API Client Library for C#
https://github.com/tootsuite/mastodon
MIT License
27 stars 4 forks source link

Error handling improvements #26

Closed toryalsip closed 7 years ago

toryalsip commented 7 years ago

Issue #24. This changes the exception being thrown when there is a failure response code to MastodonApiException, containing additional information to help the developer respond to particular error conditions.

Also included is some additional unit testing using a mock HttpClient, which we may want to expand upon to get some additional test coverage.