Below are revisions for this snippet.

Get an exceptions full stack trace with inner ex





Syndication

Revision Revison 1
This function returns a stack trace for an exception with all inner exceptions include unless the count of inner exceptions goes over 50. A stack overflow can occur if there is no upper limit for inner exceptions to read from.

Makes use of stringbuilder to build return string in order to yield higher performance.