BetterExplorer.App.Application_ThreadException C# (CSharp) Method

Application_ThreadException() private method

Handle all exceptions from current thread
private Application_ThreadException ( Object sender, ThreadExceptionEventArgs e ) : void
sender Object Who send the exception
e System.Threading.ThreadExceptionEventArgs the args
return void
    private void Application_ThreadException(Object sender, ThreadExceptionEventArgs e) {
      var lastException = e.Exception;
      var logger = NLog.LogManager.GetCurrentClassLogger();
      logger.Fatal(lastException);
    }