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()); }
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()); }
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()); }
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()); }