Replies: 2 comments 8 replies
-
Don't do it. Handle the respective exceptions inside their context. You can even introduce your own Trace Listener to track events. The Global one shall be your very last resort. |
Beta Was this translation helpful? Give feedback.
1 reply
-
Just so we are all on the same page, this has nothing to do with Prism. These are some events you may want to handle to capture errors within you WPF application:
|
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to achieve a global uniform exception handling, as opposed to having to use
try-catch
blocks everywhere. I've seen theDispatcherUnhandledException
event as a suggestion on a WPF-based solution. I've used it like this:However that does not seem to work. My exception is thrown in the Main Thread, as can be seen here:
Both - ViewModel and exception throw happen on the same thread.
Is there something else that I need to to in the context of Prism to make this work?
Beta Was this translation helpful? Give feedback.
All reactions