Exemple #1
0
 private void TaskSchedulerOnUnobservedTaskException(object sender, UnobservedTaskExceptionEventArgs exception)
 {
     log.Info(string.Format("{0} ",
                            string.IsNullOrEmpty(exception.Exception.StackTrace)
             ? exception.ToString()
             : exception.Exception.StackTrace));
 }
Exemple #2
0
        private void TaskScheduler_UnobservedTaskException(object sender, UnobservedTaskExceptionEventArgs e)
        {
            String hash = e.ToString().GetHashCode().ToString();

            MessageBox.Show("A Critical error caused the application to crash!\nThe exception has been logged.\nError code: " +
                            hash, "ERROR", MessageBoxButton.OK, MessageBoxImage.Error);
            Console.WriteLine("UNHANDLED EXCEPTION (1) (Code: " + hash + ") : " +
                              e.Exception.ToString());
        }
        private void TaskScheduler_UnobservedTaskException(object sender, UnobservedTaskExceptionEventArgs e)
        {
            MessageBox.Show(
                "A Critical error caused the application to crash!\nThe exception has been logged.\nError code: " +
                Utilities.FastCRC32.CRC32String(e.ToString()), "ERROR",
                MessageBoxButton.OK, MessageBoxImage.Error);

            logFile.WriteLine("UNHANDLED EXCEPTION (3) (Hash: " + Utilities.FastCRC32.CRC32String(e.ToString()) + ") : " +
                              e.Exception.ToString());
        }
Exemple #4
0
 private void TaskScheduler_UnobservedTaskException(object sender, UnobservedTaskExceptionEventArgs e)
 {
     //task线程内未处理捕获
     log.WriteLog($"程序线程内发生致命错误,将终止{ e.ToString()}");
 }
Exemple #5
0
 private void TaskScheduler_UnobservedTaskException(object sender, UnobservedTaskExceptionEventArgs e)
 {
     LogException(e.ToString());
 }
Exemple #6
0
        private static void TaskSchedulerOnUnobservedTaskException(object s, UnobservedTaskExceptionEventArgs e)
        {
            var ex = e.Exception as Exception;

            Console.WriteLine("Domain Exception from  {0}: {1}", s.GetType(), ex != null ? ex.ToString() : e.ToString());
        }
Exemple #7
0
    private void TaskScheduler_UnobservedTaskException(object sender, UnobservedTaskExceptionEventArgs e)
    {
        string str = GetExceptionMsg(e.Exception, e.ToString());

        FileUtil.SaveErrorLog(str);
    }
Exemple #8
0
        void UnobservedTaskException(object sender, UnobservedTaskExceptionEventArgs e)
        {
            string errorMessage = "[UnobservedTaskException]" + e.ToString();

            ExLogger.ExLog(errorMessage);
        }
 private static void TaskScheduler_UnobservedTaskException(object sender, UnobservedTaskExceptionEventArgs e)
 {
     Console.WriteLine(e.ToString());
 }
Exemple #10
0
 private static void TaskScheduler_UnobservedTaskException(object sender, UnobservedTaskExceptionEventArgs e)
 {
     Console.WriteLine($"\n\nUnobserved exception: {e.Exception.GetType().FullName}\n\n{e.ToString()}");
 }
Exemple #11
0
 async void TaskScheduler_UnobservedTaskException(object sender, UnobservedTaskExceptionEventArgs e)
 {
     await NotificationManager.HandleErrorMessageWithToaster("Something unusual happened, continue with your work", e.ToString());
 }
 public static async Task HandleGeneralException(object sender, UnobservedTaskExceptionEventArgs e)
 {
     await Show(e.ToString());
 }
Exemple #13
0
 private void TaskScheduler_UnobservedTaskException(object sender, UnobservedTaskExceptionEventArgs e)
 {
     Tools.Loger.err(TAG, e.ToString());
 }