Search
User login
C# WPF global exception handler catchall
Rather than manually try/catching everything, for some purposes, it can be appropriate to create a global exception handler using Application.DispatcherUnhandledException. This is an event that is called when an unhandled exception occurs. At this point you can eat the exception if desired, and attempt to continue operation of the program. Note that control flow of the program will be affected.
Categories