Hello 🖖 ! Does someone have any guidance/sample project on how to handle network/http errors with Store? Currently the network layer in our Android app takes care of catching exceptions, parsing error payloads and returning a custom monad class like
Result<NetworkError, T>>
. Looking at
StoreReadResponse
it seems that using
Throwable
or
String
is the only way to go. Thanks for your answers!
m
Matthew Ramotar
11/08/2023, 7:57 PM
Hey there!
Unfortunately we don't have any samples demonstrating custom error handling.
But we should be able to support custom errors without introducing breaking changes.
Quick first stab: https://github.com/MobileNativeFoundation/Store/pull/583
Thoughts?
cc @friendlymike and @yigit who may have more context on why custom errors aren't already supported
b
BenjO
11/08/2023, 9:45 PM
Thanks for the quick answer! I’m gonna comment in github PR 😉