MSDN and Version-Specific Content
Can anyone point to me which one is the correct procedure to
create a custom exception class?
"Do not derive user-defined exceptions from the Exception
base class. For most applications,
derive custom exceptions from the
ApplicationException
class." -
http://msdn.microsoft.com/en-us/library/seyhszts(vs.71).aspx
"For most applications,
derive custom exceptions from the Exception class.
It was originally thought that custom exceptions should
derive from the ApplicationException class; however in
practice this has not been found to add significant
value." -
http://msdn.microsoft.com/en-us/library/seyhszts.aspx
If you look close enough you will notice the way the content
page was built. One was done when the current version was
.NET 1.1 and the other one when .NET 2.0 was out, which
still applies to the .NET 3.5.
So, next time you
come searching for content at MSDN, it is a good practice to
see to what version it applyies.