Developing a User Feedback Strategy for App Errors
I'm trying to figure out a strategy for providing feedback to users when errors happen across various services in my app. For example if refreshing a token fails in AuthService or an RPC call fails after some retries in RPCService, or a save to the db fails in DatabaseService, if any of those happens I want to show an offline indicator to the user. There are bunch of other cases where there might be errors I need to do something with outside the service where the error happens. What might be a good pattern for handling this sort of cross-service cross-effect error propagation? Sorry this is a bit abstract, any ideas are appreciated