예제 #1
0
 void ripperViewModel_ExceptionRaised(object sender, ExceptionRaisedEventArgs e)
 {
     MessageBox.Show(
         string.Join("\n", (from exc in e.Exception.InnerExceptions select exc.Message)),
         "Error in processing",
         MessageBoxButton.OK,
         MessageBoxImage.Error);
 }
예제 #2
0
        private void ListenerExceptionRaised(object sender, ExceptionRaisedEventArgs e)
        {
            var handler = ExceptionRaised;

            if (handler != null)
            {
                handler(sender, e);
            }
        }
예제 #3
0
        private void OnExceptionRaised(object sender, ExceptionRaisedEventArgs e)
        {
            // Exception events are sent when an exception occurs in the debuggee that the debugger was not expecting.

            Send(
                new AD7DebugExceptionEvent(e.Exception.TypeName, e.Exception.Description, e.IsUnhandled),
                AD7DebugExceptionEvent.IID,
                _threads.Item2);
        }
예제 #4
0
 private void DoExceptionRaised(object sender, ExceptionRaisedEventArgs e)
 {
     try{
         this.BeginInvoke(new Del2(UpdateStatus), new object[] { sender, e });
     }
     catch (Exception)
     {
     }
 }
예제 #5
0
 protected void OnExceptionRaised(object sender, string errorMessage, Exception ex)
 {
     if (ExceptionRaised != null)
     {
         var eventArgs = new ExceptionRaisedEventArgs {
             InnerException = ex, UserState = UserState, ErrorMessage = errorMessage
         };
         ExceptionRaised(sender, eventArgs);
     }
 }
예제 #6
0
        private void exportUtility_ExceptionRaised(object sender, ExceptionRaisedEventArgs e)
        {
            GlymaExportUserState userState = e.UserState as GlymaExportUserState;

            if (userState != null)
            {
                SPWorkItem workItem = userState.StateObject as SPWorkItem;
                if (workItem != null)
                {
                    WriteExportStatus(workItem, ExportStatus.Error);
                    LogMessage(workItem, "Error during export: {0}\r\n{1}", e.ErrorMessage, e.InnerException);
                }
            }
        }
예제 #7
0
 private void OnExceptionRaised(object sender, ExceptionRaisedEventArgs e)
 {
     if (ShouldBreak(e))
     {
         // Exception events are sent when an exception occurs in the debuggee that the debugger was not expecting.
         Send(
             new AD7DebugExceptionEvent(e.Exception.TypeName + Environment.NewLine + e.Exception.Description),
             AD7DebugExceptionEvent.IID,
             _threads[e.Thread]
             );
     }
     else
     {
         e.Thread.Resume();
     }
 }
예제 #8
0
        private bool ShouldBreak(ExceptionRaisedEventArgs e)
        {
            if (_defaultBreakOnException)
            {
                return(true);
            }

            if (_breakOnException.Contains(e.Exception.TypeName))
            {
                return(true);
            }

            if (_process.LanguageVersion.Is3x() && e.Exception.TypeName.StartsWith("builtins."))
            {
                string mappedName = "exceptions." + e.Exception.TypeName.Substring("builtins.".Length);
                if (_breakOnException.Contains(mappedName))
                {
                    return(true);
                }
            }

            return(false);
        }
예제 #9
0
 private void OnExceptionRaised(object sender, ExceptionRaisedEventArgs e)
 {
     // Exception events are sent when an exception occurs in the debuggee that the debugger was not expecting.
     AD7Thread thread;
     if (_threads.TryGetValue(e.Thread, out thread)) {
         Send(
             new AD7DebugExceptionEvent(e.Exception.TypeName, e.Exception.Description, e.IsUnhandled),
             AD7DebugExceptionEvent.IID,
             thread
         );
     }
 }
예제 #10
0
 private void ListenerExceptionRaised(object sender, ExceptionRaisedEventArgs e)
 {
     LogMessage(e.Exception.ToString());
 }
 private void engine_ExceptionRaised(object sender, ExceptionRaisedEventArgs e)
 {
     this.logger.Invoke(String.Format("Exception thrown from SNMP agent: {0}", e.Exception));
 }
 private void exportUtility_ExceptionRaised(object sender, ExceptionRaisedEventArgs e)
 {
     GlymaExportUserState userState = e.UserState as GlymaExportUserState;
     if (userState != null)
     {
         SPWorkItem workItem = userState.StateObject as SPWorkItem;
         if (workItem != null)
         {
             WriteExportStatus(workItem, ExportStatus.Error);
             LogMessage(workItem, "Error during export: {0}\r\n{1}", e.ErrorMessage, e.InnerException);
         }
     }
 }
예제 #13
0
 private static void Engine_ExceptionRaised(object sender, ExceptionRaisedEventArgs e)
 {
     Console.WriteLine("Exception occurred: {0}", e.Exception);
 }
예제 #14
0
 protected void OnExceptionRaised(object sender, string errorMessage, Exception ex)
 {
     if (ExceptionRaised != null)
     {
         var eventArgs = new ExceptionRaisedEventArgs {InnerException = ex, UserState = UserState, ErrorMessage = errorMessage};
         ExceptionRaised(sender, eventArgs);
     }
 }
예제 #15
0
 private void ExceptionHandler(object sender, ExceptionRaisedEventArgs e)
 {
     var message = e.Exception.Message;
 }
예제 #16
0
 private void UpdateStatus(object sender, ExceptionRaisedEventArgs e)
 {
     lblStatus.Text = e.Explaination;
     Log(e.Explaination);
 }