public frmError(StfuException e, string prefix) { if (e == null) { throw new ArgumentNullException("Exception cannot be null."); } InitializeComponent(); this.mException = e; this.txtMessage.Text = string.Format("{0}: {1}", (string.IsNullOrWhiteSpace(prefix)) ? string.Empty : prefix, e.Message); this.txtTrace.Text = e.StackTrace; }
public static void ShowException(StfuException e, string prefix) { using (frmError fErr = new frmError(e, prefix)) fErr.ShowDialog(); }
public static void ShowException(StfuException e) { ShowException(e, string.Empty); }
public frmError(StfuException e) : this(e, string.Empty) { }