Beispiel #1
0
 private void ProcessException(Exception e)
 {
     try {
         if (e != null)
         {
             ErrReportException erex   = e as ErrReportException;
             ErrReport          report = null;
             if (erex != null)
             {
                 report = erex.Report;
             }
             else
             {
                 report = WrapErr.GetErrReport(0, e.Message, e);
             }
             this.errBox.Text = string.Format(
                 "{0}  {1}:{2}\r\n{3}\r\n{4}",
                 report.Code, report.AtClass, report.AtMethod, report.Msg, report.StackTrace);
         }
         else
         {
             this.errBox.Text = "Null exception. No info";
         }
     }
     catch (Exception) {
         this.errBox.Text = "Failed to populate";
     }
 }