Example #1
0
 // Token: 0x06000134 RID: 308 RVA: 0x00005795 File Offset: 0x00003995
 private static string GetUnhandledExceptionMessage(Client.ExceptionInfo ex)
 {
     if (ex != null)
     {
         return(string.Format("Unhandled Exception:\n\n{0}: {1}", ex.Type, ExceptionsAdapter.ReplaceMessage(ex)));
     }
     return("An unhandled exception occured.");
 }
Example #2
0
 // Token: 0x06000136 RID: 310 RVA: 0x000057D8 File Offset: 0x000039D8
 private void OnUnhandledException(object sender, TargetEventArgs args)
 {
     try
     {
         EvaluationOptions evaluationOptions = this.session.EvaluationOptions.Clone();
         evaluationOptions.EllipsizeStrings = false;
         var    exceptionInfo        = this.GetExceptionInfo(args.Backtrace, evaluationOptions, true);
         Thread threadFromTargetArgs = this.threading.GetThreadFromTargetArgs("OnUnhandledException()", args);
         this.eventSender.SendEvent(new AD7DebugExceptionEvent(threadFromTargetArgs, ExceptionsAdapter.GetUnhandledExceptionMessage(exceptionInfo)));
     }
     catch (Exception ex)
     {
         throw;
     }
 }
Example #3
0
 // Token: 0x06000132 RID: 306 RVA: 0x00005718 File Offset: 0x00003918
 private void OnExceptionThrown(object sender, TargetEventArgs args)
 {
     try
     {
         var    exceptionInfo        = this.GetExceptionInfo(args.Backtrace, null, false);
         Thread threadFromTargetArgs = this.threading.GetThreadFromTargetArgs("OnExceptionThrown()", args);
         this.eventSender.SendEvent(new AD7DebugExceptionEvent(threadFromTargetArgs, ExceptionsAdapter.GetExceptionMessage(exceptionInfo)));
     }
     catch (Exception ex)
     {
         throw;
     }
 }