22 string text =
string.Empty;
23 if (!
string.IsNullOrEmpty(additionalMessage)) {
24 text = additionalMessage;
26 for (Exception ex = e; ex !=
null; ex = ex.InnerException) {
27 text = text + (text.Length > 0 ? Environment.NewLine :
string.Empty) + ex;