JamitLabs / Jetworking

A multi-module library providing a user-friendly interface for common networking tasks
https://JamitLabs.github.io/Jetworking/
MIT License
4 stars 3 forks source link

Improve error handling #6

Open SimonNumberTwo opened 3 years ago

SimonNumberTwo commented 3 years ago

Description

The current error handling must be improved. The defined APIError enum has to be taken into consideration and may be removed and improved by a better way of handling possible errors.

mrylmz commented 3 years ago

Can you please describe the problems of the current error handling and what it should support in future versions?

SimonNumberTwo commented 3 years ago

For me the error handling should have dedicated cases like "DecodingError" something similar so the app which uses the framework can react accordingly.

Maybe we should take Moya or Alamofire or Networking into consideration how they implemented error handling. Also other approaches like Retrofit for Android can be taken into this research.

@JensK611 what is your opinion on error handling in Jetworking?