Home All Groups Group Topic Archive Search About

List of common exceptions?

Author
29 Nov 2007 6:54 PM
Smokey Grindel
Is there a list of commonly used exception types out there and what they are
intended to be used for? Thanks!

Author
29 Nov 2007 7:25 PM
sloan
Common for doing?

1.  Math calculations?
2.  Database access?  (And which one, Sql Server, Oracle, etc?)
3.  Drawing Images?
4.  File System access?


"Common" is based on what you might be doing.

I seldom get a file system access exception, because I write data centric
applications.
But I'm sure there are alot of developers out there who need to be very
famaliar with IO exceptions.

You can investigate the System.Exception namespace at msdn to learn more
about exceptions.


Here is a good article on ~handling~ exceptions.

http://blogs.msdn.com/kcwalina/archive/2005/03/16/396787.aspx





Show quote
"Smokey Grindel" <nospam@nospam.com> wrote in message
news:OZPnOlrMIHA.1188@TK2MSFTNGP04.phx.gbl...
> Is there a list of commonly used exception types out there and what they
> are intended to be used for? Thanks!
>
Author
29 Nov 2007 7:35 PM
Tom Porterfield
Smokey Grindel wrote:
> Is there a list of commonly used exception types out there and what they are
> intended to be used for? Thanks!

A lot of them can be found at
http://msdn2.microsoft.com/en-us/library/x4xzbdb9.aspx and
http://msdn2.microsoft.com/en-us/library/kw9wwk34.aspx, though that
doesn't go into how commonly they are used.
--
Tom Porterfield
Author
29 Nov 2007 8:49 PM
Ignacio Machin ( .NET/ C# MVP )
Hi,


Well you have Exception that can be used for anything :)

Seriously now, you can get a list of the Exceptions defined in the
framework. How often you will see them depend of too many factors.
I dare to say that the most common one is NullReferenceException. Other than
that I have no idea

--
Ignacio Machin
http://www.laceupsolutions.com
Mobile & warehouse Solutions.
Show quote
"Smokey Grindel" <nospam@nospam.com> wrote in message
news:OZPnOlrMIHA.1188@TK2MSFTNGP04.phx.gbl...
> Is there a list of commonly used exception types out there and what they
> are intended to be used for? Thanks!
>
Author
29 Nov 2007 10:19 PM
Rene
Open Visual Studio (at least 2005), click on the "Debug" menu item and then
from the dropdown click on "Exceptions."

This will popup a form listing all kind of exceptions neatly arranged.


Show quote
"Smokey Grindel" <nospam@nospam.com> wrote in message
news:OZPnOlrMIHA.1188@TK2MSFTNGP04.phx.gbl...
> Is there a list of commonly used exception types out there and what they
> are intended to be used for? Thanks!
>

AddThis Social Bookmark Button