Ejemplo n.º 1
0
 public void Summary(Exception ex, string ExtraInfo = null)
 {
     System.Text.StringBuilder message = new System.Text.StringBuilder();
     if (ExtraInfo != null) message.AppendLine(ExtraInfo + Environment.NewLine);
     message.AppendLine(ex.Description() + Environment.NewLine);
     if (this.Log != null) this.Log.Out(message.ToString(), Dumpster2.Logger.TextFormat.Box);
     var df = new frmError(ex.GetType().Name, message.ToString());
 }
Ejemplo n.º 2
0
 public void Extended(Exception ex, string ExtraInfo = null)
 {
     System.Text.StringBuilder message = new System.Text.StringBuilder();
     if (ExtraInfo != null) message.AppendLine(ExtraInfo + Environment.NewLine);
     message.AppendLine(ex.Description() + Environment.NewLine);
     message.AppendLine("--Stack Trace--" + Environment.NewLine + ex.StackTrace + Environment.NewLine);
     if (ex.InnerException != null) message.AppendLine("Inner Exceptions:" + Environment.NewLine + ex.InnerExList() + Environment.NewLine);
     if (this.Log != null) this.Log.Out(message.ToString(), Dumpster2.Logger.TextFormat.Box);
     var df = new frmError(ex.GetType().Name, message.ToString());
 }
Ejemplo n.º 3
0
 public void Summary(Exception ex, string ExtraInfo = null)
 {
     System.Text.StringBuilder message = new System.Text.StringBuilder();
     if (ExtraInfo != null)
     {
         message.AppendLine(ExtraInfo + Environment.NewLine);
     }
     message.AppendLine(ex.Description() + Environment.NewLine);
     if (this.Log != null)
     {
         this.Log.Out(message.ToString(), Dumpster2.Logger.TextFormat.Box);
     }
     var df = new frmError(ex.GetType().Name, message.ToString());
 }
Ejemplo n.º 4
0
 public void Extended(Exception ex, string ExtraInfo = null)
 {
     System.Text.StringBuilder message = new System.Text.StringBuilder();
     if (ExtraInfo != null)
     {
         message.AppendLine(ExtraInfo + Environment.NewLine);
     }
     message.AppendLine(ex.Description() + Environment.NewLine);
     message.AppendLine("--Stack Trace--" + Environment.NewLine + ex.StackTrace + Environment.NewLine);
     if (ex.InnerException != null)
     {
         message.AppendLine("Inner Exceptions:" + Environment.NewLine + ex.InnerExList() + Environment.NewLine);
     }
     if (this.Log != null)
     {
         this.Log.Out(message.ToString(), Dumpster2.Logger.TextFormat.Box);
     }
     var df = new frmError(ex.GetType().Name, message.ToString());
 }