Closed sir-boformer closed 5 years ago
of course. I figured out a way with the existing Dictionary
Just a question, I am reading the diff on the phone so I might be wrong. 😅
Why is the content passed twice into the Exception:
Besides this everything looks good! 🤜🤛
Maybe you can update the Pull Request and I will merge it. 👍
@sir-boformer If I merge it, what do you think about the version number of the library? Should it be a 3.0 then? Because some people might have built their error handling on the previous implementation, so this looks like a breaking change.
Makes sense.
Also, about passing the content
twice. That's because I wanted a dedicated field for the raw response, so that people can parse it manually (first argument). The second argument is the human-readable message, which is currently also the raw response, but could also be something else.
Please don't be disappointed for me not merging yet! I will for sure, but I am hesitant to make breaking changes and go to 3.0 for now.
@sir-boformer Thank you very, very much for your Pull Request. I always considered merging it in the past months, but I am still hesitant... just because I still don't know if I am interpreting the protocol correctly. This sucks a lot for users of the API... but at the same time I don't want API requests to fail, because I missed something in the docs and the deserialization fails. Sorry for closing and thanks again for your good support!
Good work! 😎 Please give me some time to take a look, before merging it.