Scalien.ExceptionStackTrace.GetExceptionStackTraces C# (CSharp) Method

GetExceptionStackTraces() private method

private GetExceptionStackTraces ( Exception exception ) : string
exception System.Exception
return string
        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();
        }