Example #1
0
 static void CurrentDomain_FirstChanceException(object sender, System.Runtime.ExceptionServices.FirstChanceExceptionEventArgs e)
 {
     Log("FirstChanceException", e.Exception);
 }
Example #2
0
 private static void CurrentDomain_FirstChanceException(object sender, System.Runtime.ExceptionServices.FirstChanceExceptionEventArgs e)
 {
     log.Debug("FirstChanceException in: " + e.Exception.Source, e.Exception);
 }
Example #3
0
 // Example 1
 void CurrentDomain_FirstChanceException(object sender, System.Runtime.ExceptionServices.FirstChanceExceptionEventArgs e)
 {
     //MessageBox.Show("1. CurrentDomain_FirstChanceException");
     //ProcessError(e.Exception);   - This could be used here to log ALL errors, even those caught by a Try/Catch block
 }
Example #4
0
        private static void CurrentDomain_FirstChanceException(object sender, System.Runtime.ExceptionServices.FirstChanceExceptionEventArgs e)
        {
            string logMessage = FlattenException(e.Exception);

            LogData(logMessage);
        }
Example #5
0
 private static void AppDomain_FirstChanceException(object sender, System.Runtime.ExceptionServices.FirstChanceExceptionEventArgs e)
 {
     Console.WriteLine("Exception");
 }
Example #6
0
 void CurrentDomain_FirstChanceException(object sender, System.Runtime.ExceptionServices.FirstChanceExceptionEventArgs e)
 {
     Console.WriteLine(e.Exception.Message);
 }
Example #7
0
        private void FirstChanceExceptionHandler(object sender, System.Runtime.ExceptionServices.FirstChanceExceptionEventArgs args)
        {
            Exception e = args.Exception;

            logger.Fatal("FirstChanceException caught: " + e.Message);
        }
Example #8
0
 static void CurrentDomain_FirstChanceException(object sender, System.Runtime.ExceptionServices.FirstChanceExceptionEventArgs e)
 {
     File.WriteAllText("Error.txt", e.Exception.ToString());
 }
Example #9
0
 /// <summary>
 /// Unknown exceptions handler event
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void App_FirstChanceException(object sender, System.Runtime.ExceptionServices.FirstChanceExceptionEventArgs e)
 {
     InsertException(e.Exception);
 }
Example #10
0
        private void CurrentDomain_FirstChanceException(object sender, System.Runtime.ExceptionServices.FirstChanceExceptionEventArgs firstChanceExceptionEventArgs)
        {
            var exception = firstChanceExceptionEventArgs.Exception;

            LogException(exception, "---------------------------- FirstChanceException ---------------------------");
        }
Example #11
0
 private void Ad_FirstChanceException(object sender, System.Runtime.ExceptionServices.FirstChanceExceptionEventArgs e)
 {
 }
Example #12
0
 private static void CurrentDomain_FirstChanceException(object sender, System.Runtime.ExceptionServices.FirstChanceExceptionEventArgs e)
 {
     Console.WriteLine("Log:{0}", e.ToString());
 }
Example #13
0
 private void CurrentDomain_FirstChanceException(object sender, System.Runtime.ExceptionServices.FirstChanceExceptionEventArgs e)
 {
     //logger.WriteException(e.Exception);
 }
Example #14
0
 private static void CurrentDomain_FirstChanceException(object sender, System.Runtime.ExceptionServices.FirstChanceExceptionEventArgs e)
 {
     Debug.WriteLine(string.Format("FirstChance exception: {0}, Stacktrace: {1}", e.Exception.Message, e.Exception.StackTrace), "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
 }
Example #15
0
 static void CurrentDomain_FirstChanceException(object sender, System.Runtime.ExceptionServices.FirstChanceExceptionEventArgs e)
 {
     //MessageBox.Show("First Chance Exception: " + e.Exception.ToString());
 }
Example #16
0
        private static void CurrentDomain_FirstChanceException(object sender, System.Runtime.ExceptionServices.FirstChanceExceptionEventArgs e)
        {
            var logger = LogManager.GetLogger(typeof(EntryPoint));

            logger.Error(e.Exception);
        }
Example #17
0
 private void CurrentDomain_FirstChanceException(object sender, System.Runtime.ExceptionServices.FirstChanceExceptionEventArgs e)
 {
     Output += e.Exception.Message;
 }
Example #18
0
 void CurrentDomain_FirstChanceException(object sender, System.Runtime.ExceptionServices.FirstChanceExceptionEventArgs e)
 {
     // a breakpoint in here could be useful
     return;
 }
Example #19
0
 void CurrentDomain_FirstChanceException(object sender, System.Runtime.ExceptionServices.FirstChanceExceptionEventArgs e)
 {
     log.Warn(e.Exception);   // This could be used here to log ALL errors, even those caught by a Try/Catch block
 }
Example #20
0
 private void CurrentDomain_FirstChanceException(object sender, System.Runtime.ExceptionServices.FirstChanceExceptionEventArgs e)
 {
     System.Diagnostics.Trace.WriteLine(e.Exception.ToString());
 }
 private void CurrentDomain_FirstChanceException(object sender, System.Runtime.ExceptionServices.FirstChanceExceptionEventArgs e)
 {
     // MessageBox.Show("CurrentDomain_FirstChanceException:\n" + e.Exception.Message, "Error", MessageBoxButton.OK, MessageBoxImage.Error);
 }
Example #22
0
 private static void CurrentDomain_FirstChanceException(object sender, System.Runtime.ExceptionServices.FirstChanceExceptionEventArgs e)
 {
     Console.WriteLine($"----FirstChanseException----");
     Console.WriteLine($"{e.Exception.ToString()}");
     Console.WriteLine($"----FirstChanseException----");
 }
Example #23
0
 private static void CurrentDomain_FirstChanceException(object sender, System.Runtime.ExceptionServices.FirstChanceExceptionEventArgs e)
 {
     KryptonMessageBox.Show($"Wystąpił błąd w {nameof(Program)}, treść : {e.Exception.Message}");
     Application.Exit();
 }
Example #24
0
 private void Acuminator_FirstChanceException(object sender, FirstChanceExceptionEventArgs e)
 {
     LogException(e.Exception);
 }
Example #25
0
 static void domain_FirstChanceException(object sender, System.Runtime.ExceptionServices.FirstChanceExceptionEventArgs e)
 {
     Console.WriteLine(e.Exception.StackTrace);
     Console.WriteLine(sender.ToString());
     Console.WriteLine(e.Exception.ToString());
 }
Example #26
0
 private void CurrentDomain_FirstChanceException(object sender, System.Runtime.ExceptionServices.FirstChanceExceptionEventArgs e)
 {
     Log.Error(TAG, e.Exception.ToString());
     Debugger.Break();
 }
Example #27
0
 private void CurrentDomain_FirstChanceException(object sender, System.Runtime.ExceptionServices.FirstChanceExceptionEventArgs e)
 {
     try { Trace.TraceError(GetExceptionMessage(e.Exception)); }
     catch { }
 }
Example #28
0
 private static void CurrentDomain_FirstChanceException(object sender, System.Runtime.ExceptionServices.FirstChanceExceptionEventArgs e)
 {
     Log.Error(e.Exception, "First chance exception: ");
 }
Example #29
0
 private static void CurrentDomain_FirstChanceException(object sender,
                                                        System.Runtime.ExceptionServices.FirstChanceExceptionEventArgs e)
 {
     AnalogyLogger.Instance.LogWarning(e.Exception.ToString(), nameof(CurrentDomain_FirstChanceException));
 }
Example #30
0
 private static void HandleFirstChanceException(object sender, FirstChanceExceptionEventArgs e)
 {
     string caption = "First Chance Exception";
     MessageBox.Show(e.Exception.Message + Environment.NewLine + Environment.NewLine + e.Exception.StackTrace + (new System.Diagnostics.StackTrace(1)), caption, MessageBoxButtons.OK, MessageBoxIcon.Error, MessageBoxDefaultButton.Button1);
 }
Example #31
0
 private static void CurrentDomain_FirstChanceException(object sender, System.Runtime.ExceptionServices.FirstChanceExceptionEventArgs e)
 {
     MasterLog.DebugWriteLine(e.Exception, "First chance exception: ");
 }