In an earlier tip I disagreed with one of Microsoft’s recommendations for handling exceptions. I figure I’m on a roll, so here’s another objection to some Microsoft advice on handling errors.
In Microsoft’s reference documentation for the Exception object’s ToString method, Microsoft recommends using Exception object’s ToString method to report errors. The Remarks section of the documentation says that the exception’s ToString method “returns a representation of the current exception that is intended to be understood by humans.”
Logging vs. Reporting Exceptions in Visual Studio - The Exception object has both a Message property and a ToString method and they return different results. Both are good, just not for the purposes that Microsoft suggests (at least, in Peter's opinion).