List of common exceptions?

  • Thread starter Thread starter Smokey Grindel
  • Start date Start date
S

Smokey Grindel

Is there a list of commonly used exception types out there and what they are
intended to be used for? Thanks!
 
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
 
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
 
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top