All C# extension methods for type exception
Creates a string for logging purposes from an Exception.
Includes the InnerException(s), Stacktrace et cetera.
Turns any object to Exception. Very useful!
Gets the most inner (deepest) exception of a given Exception object
Sometimes it is required to collect exception information in textual format. This method serializes general info about exception and all included exceptions reccursively.
I'm using this for sending email error reports.
ExtensionMethod.NET was built by
Loek van den Ouweland and Fons Sonnemans
By using this website, you agree to the legal stuff.
We thank all who contributed to this website for the last twelve years. It really helped making this website a success!
Just looking for examples? Visit our sister site
Looking for Visual Studio Code Snippets? Visit our sister site VisualStudioCodeSnippets.com.