private static IDictionary <string, object> GetPropertiesFromException(Exception e, IDictionary <string, object> props)
{
props.Add("Messages", Utility.CollectExceptionMessages(e));
var epath = string.Empty;
while (e != null)
{
epath += e.GetType().Name + "/";
var data = e.Data;
foreach (var key in data.Keys)
{
props.Add(epath + key, data[key]);
}
e = e.InnerException;
}
return(props);
}