Hello :spock-hand: ! Does someone have any guidanc...
# store
b
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
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
Thanks for the quick answer! I’m gonna comment in github PR 😉
👍 1