/// <summary> /// Handles the UnhandledException event. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">A <see cref="UnhandledExceptionEventArgs"/> with arguments of the event.</param> private static void CurrentDomainOnUnhandledException(object sender, UnhandledExceptionEventArgs e) { var newExc = new Exception("CurrentDomainOnUnhandledException", e.ExceptionObject as Exception); AppDelegate.LogUnhandledException(newExc); }