我想合并所有异常。这是一个很好的做法吗?
string consolidatingAllException = string.Empty;
try
{
// some process();
}
catch (Exception ex)
{
while (ex.InnerException != null)
{
consolidatingAllException += (ex.InnerException.Message);
}
}