Closed AlexTrotsenko closed 4 years ago
As far as I see, the only place where the error message comes from is https://github.com/VictorAlbertos/RxCache/blob/fb1964b4d38c9f590d8c38827702acd74adfac1c/core/src/main/java/io/rx_cache2/internal/ProcessorProvidersBehaviour.java#L124-L146
Feel free to open a PR to improve it 👍
When exception is thrown from Observable/Single... and there is not data in the cache - initial exception is swallowed making it's hard to debug possible issue.
Right now when I have:
If the exception is thrown from
Loader.load()
and there is not data in the cache - the original exception is swallowed and replaced with:It makes sense for debugging purposes to add original exception as the cause.