private string GetExceptionStackTraces(Exception exception)
{
StringBuilder sb = new StringBuilder();
while (true)
{
UpdateByLastFrame(exception, sb);
exception = exception.InnerException;
if (exception == null)
break;
sb.Append(exception.GetType().FullName).Append(" : ").Append(exception.Message).Append('\n');
}
return sb.ToString();
}