Hadling Exceptions

May 18, 2013 at 5:07 AM
Is there a centralized place to handle all exceptions that comes up in ViewModel or Model to be logged?
May 21, 2013 at 9:15 PM
Edited May 21, 2013 at 9:16 PM

If you want to react to UnhandledExceptions in your application that were not catched, I believe you could subscribe to the UnhandledException event in the Application class:
public App()
    this.UnhandledException += App_UnhandledException;

private void App_UnhandledException(object sender, UnhandledExceptionEventArgs e)
    ... logic to log the exception ...

Damian Cherubini
May 22, 2013 at 6:54 AM
Thanks Damian for your reply Actually I am looking for any kind of error that is raised in VM or Model can be bubbled up and handled at a centralized location.