Click here to Skip to main content
15,122,218 members
Articles / General Programming / Exceptions

Stats

21.2K views
147 downloads
14 bookmarked

A Quick and Dirty Extension Method to Get the Full Exception Details, Including Inner Exceptions

Rate me:
Please Sign up or sign in to vote.
5.00/5 (11 votes)
1 Apr 2017CPOL2 min read
This tip presents an easy way of verbosely converting an exception and its inner exceptions to a string in order to get access to all details.

Views

Downloads

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Marco Bertschi
Software Developer
Switzerland Switzerland
I'm a young Software Engineer. Whilst I may accept a 'status quo' as given, it's my responsibility to improve it as soon as the opportunity arises.
Very familiar with the .Net framework since it has been the underlying foundation for most of my professional work so far. I'm that kind of guy who gets stuff done, while I may also improve the way things work whilst I'm at it. Generally can get along well with most people I meet as a professional.
Fervent volunteer firefigter, captain-ranked air force militia spec officer.
Great friend and generally nice to have me around - For a talk, a beer, or a bonfire (I might as well do all of those things combined). Oh, and I really love music - Rock & country that is, mostly.

Comments and Discussions