BetterExplorer.App.CurrentDomain_UnhandledException C# (CSharp) Метод

CurrentDomain_UnhandledException() приватный Метод

Handle all exceptions from current domain
private CurrentDomain_UnhandledException ( Object sender, UnhandledExceptionEventArgs e ) : void
sender Object Who send the exception
e System.UnhandledExceptionEventArgs the args
Результат void
    private void CurrentDomain_UnhandledException(Object sender, UnhandledExceptionEventArgs e) {
      var lastException = (Exception)e.ExceptionObject;
      var logger = NLog.LogManager.GetCurrentClassLogger();
      logger.Fatal(lastException);
    }