List of exceptions

  • Thread starter Thread starter Chakravarthy
  • Start date Start date
C

Chakravarthy

Where can we get a comprehensive list of all .NET exceptions with examples
of when to use each of them ?
 
Where can we get a comprehensive list of all .NET exceptions with
examples of when to use each of them ?

You can start with the documentation for System.Exception, which provides
a link to a list of derived classes (as all main pages for the .NET
classes have). Just follow the derivation chain for each subclass, and
you will eventually enumerate all of the exceptions.
 
I see so much value in that, it just aint funny. Maybe it should be in the
form of a wiki so that it can be updated by others - think spread the work
around.

--
Regards,
Alvin Bruney
------------------------------------------------------
Shameless author plug
Excel Services for .NET is coming...
https://www.microsoft.com/MSPress/books/10933.aspx
OWC Black Book www.lulu.com/owc
Professional VSTO 2005 - Wrox/Wiley
 
Thanks. I just opened Object explorer in VS 2005 and just searched for all
items which had 'exception' and then took only those which ended with the
keyword exception , which is a practise that MS follows i think. I only
took those items which had a plus sign , which probably indicated they were
inherited from some base exception. I ignored other items.
 
Yes there is a lot of refinement and inputs which can help us have a
comprehensive and context sensitive set of exceptions .That way when FxCop
complains about using SystemException, we can think of the right set
instead.




Alvin Bruney said:
I see so much value in that, it just aint funny. Maybe it should be in the
form of a wiki so that it can be updated by others - think spread the work
around.

--
Regards,
Alvin Bruney
------------------------------------------------------
Shameless author plug
Excel Services for .NET is coming...
https://www.microsoft.com/MSPress/books/10933.aspx
OWC Black Book www.lulu.com/owc
Professional VSTO 2005 - Wrox/Wiley
 
Back
Top