How to catch exception thrown in NotifierProvider in an observer. #3462
Unanswered
TreyThomas93
asked this question in
Q&A
Replies: 1 comment
-
What do you mean by the observer not picking up exceptions in Notifiers? It should work. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey everyone, I was hoping someone could help me out. I am using a provider observer to catch and log all of the failed providers, but when it comes to Notifier, if I throw an exception, then the observer doesn't catch it. Why is this and how can I catch the Notifier method exception in the observer?
If this is not an ideal approach, then is better practice to just let the app crash and fail and log from there?
My current understanding
Is it possible to implement a riverpod class and create my own subclass to handle "SyncError" the same way AsyncError is handled?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions