But how do you sanely compose many of these result style responses?
➕ 1
👍 1
g
gildor
05/06/2020, 6:06 AM
would be interesting to see real life code written like this, I found that separate success/error is enough, because user-friendly error (with network errors, api errors) is anyway generated by other code, which handles all known cases and shows actual error
And there checking for original throwable makes more sense, it does essentially the samw what your CallAdapter, but it looks unnecessary to do on level of retrofit adapter