473,473 Members | 1,563 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

List of common exceptions?

Is there a list of commonly used exception types out there and what they are
intended to be used for? Thanks!
Nov 29 '07 #1
5 9511

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/archi...16/396787.aspx

"Smokey Grindel" <no****@nospam.comwrote in message
news:OZ**************@TK2MSFTNGP04.phx.gbl...
Is there a list of commonly used exception types out there and what they
are intended to be used for? Thanks!

Nov 29 '07 #3
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
Nov 29 '07 #4
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.
"Smokey Grindel" <no****@nospam.comwrote in message
news:OZ**************@TK2MSFTNGP04.phx.gbl...
Is there a list of commonly used exception types out there and what they
are intended to be used for? Thanks!

Nov 29 '07 #5
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.
"Smokey Grindel" <no****@nospam.comwrote in message
news:OZ**************@TK2MSFTNGP04.phx.gbl...
Is there a list of commonly used exception types out there and what they
are intended to be used for? Thanks!

Nov 29 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: beliavsky | last post by:
I can define a function that transforms either a scalar or each element in a list as follows: def twice(x): try: return map(twice,x) except: return 2*x print twice(3) # 6
10
by: bearophile | last post by:
This is my first Python program (it's an improvement of a recursive version by Luther Blissett). Given a list like this: , ]]] It produces the "flatted" version: I think this operation is...
57
by: Xarky | last post by:
Hi, I am writing a linked list in the following way. struct list { struct list *next; char *mybuff; };
11
by: stax | last post by:
Hi, Assuming having a method that calls another method which also calls other methods and so on having a long winded tree of methods. What do I do in case it turns out everything has to be...
18
by: jwaixs | last post by:
Hello, How can I disgrate (probably not a good word for it) a list? For example: a = b = 3 c = + # which makes ,3] Then how can I change c (,3]) into ? I have a simple
17
by: 2005 | last post by:
Hi In C++, are the following considered best practices or not? - passing aguments to functions (ie functions do not take any arguments ) - returning values using return statement Anything...
40
by: nufuhsus | last post by:
Hello all, First let me appologise if this has been answered but I could not find an acurate answer to this interesting problem. If the following is true: C:\Python25\rg.py>python Python...
27
by: Jason Doucette | last post by:
I'm getting an assertion fire from a list iterator being checked against NULL. This did not occur in VC++ 2003 (v7.1). Are there changes that have been made to the STL between these versions that...
96
by: zzbbaadd | last post by:
What's with the index() function of lists throwing an exception on not found? Let's hope this is rectified in Python 3. If nothing else, add a function that doesn't throw an exception. There are a...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.