BottleRocketStudios / iOS-Hyperspace

An extremely lightweight wrapper around URLSession to make working with APIs a breeze.
Apache License 2.0
47 stars 17 forks source link

Improve error handling #112

Closed earlgaspard closed 2 years ago

earlgaspard commented 4 years ago

Error handling needs to account for: Errors that return responses 200s that are actual failures (if possible. this may be project related)

tylermilner commented 4 years ago

This is currently possible, but a little messy. Another ticket meant for Hyperspace rewrite tracking?

earlgaspard commented 4 years ago

I am unaware of the rewrite plans but I don't see why it can't be part of it.

wmcginty commented 4 years ago

There are some enhancements here in #117

wmcginty commented 2 years ago

I'm going to close this one out. Hyperspace supports the ability for an end user to specify their own custom error type (other than AnyError, which provides some powerful advanced error handling options. In addition, there are guides for error handling and recovery that can aid with specifics.