473,406 Members | 2,698 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Exception handlig article

ORC
I'm looking for a good article that explains how exception handling should
be implemented in an application. It's not only the tecnical implementation
(try-catch-final thing) but a good general rule to follow I wanted. Are you
aware of one you would recommend?

Thanks,
Ole
Nov 16 '05 #1
6 1127
Ole,

I have posted a couple of links below. I still find the best resources on
the MSDN but when in doubt take a look at the IL with the ildasm tool and
judge for yourself.

I hope that this helps.

--------------
http://msdn.microsoft.com/library/de...exceptions.asp

http://msdn.microsoft.com/library/de...asp?frame=true

http://msdn.microsoft.com/library/de..._resources.asp
Nov 16 '05 #2
ORC
Thanks Brian - there's a lot of stuff on net about exception handling and
therefore it is easy to get lost in some unneccesary readings - so thankyou
for showing me the track!

Thanks,
Ole
"Brian Brown" <Br********@discussions.microsoft.com> wrote in message
news:7D**********************************@microsof t.com...
Ole,

I have posted a couple of links below. I still find the best resources on
the MSDN but when in doubt take a look at the IL with the ildasm tool and
judge for yourself.

I hope that this helps.

---------------
http://msdn.microsoft.com/library/de...exceptions.asp
http://msdn.microsoft.com/library/de...asp?frame=true
http://msdn.microsoft.com/library/de..._resources.asp

Nov 16 '05 #3
Ole,

Great! I am glad that I could help!
Nov 16 '05 #4
ORC
Now I have readen the articles and got an idea of how to use exception
handling. The next thing is that I would like to learn about is how the
overall exception handling should be done e.g. should the message to the
user be written at the source or in a central class that finally handles all
the exceptions (by using re-throw from class to class) from throughout the
application - also with internationalization in mind. Any good article on
that?

Thanks,
Ole

"Brian Brown" <Br********@discussions.microsoft.com> wrote in message
news:40**********************************@microsof t.com...
Ole,

Great! I am glad that I could help!

Nov 16 '05 #5
Ole,

I believe that the links that I have provided below will answer your
questions about internationalization, error handling, and best practices for
both. I haven’t really seen any good articles that cover these subjects
together but I think that if you read through these you will be able to
combine both aspects successfully.

I hope this helps!

-------------------
---Exception handling (look at the bottom for Localization
http://msdn.microsoft.com/library/de...ceptdotnet.asp

http://msdn.microsoft.com/library/de...asp?frame=true

---Internationalization/Localizatio
http://msdn.microsoft.com/library/de...loctoolkit.asp

http://msdn.microsoft.com/library/de...plications.asp

http://msdn.microsoft.com/library/de...tiondesign.asp - Best Practices

http://msdn.microsoft.com/library/de...server2000.asp - Sql Server 2k

Nov 16 '05 #6
ORC
Thanks again - very useful information this time too!

Ole

"Brian Brown" <Br********@discussions.microsoft.com> wrote in message
news:C1**********************************@microsof t.com...
Ole,

I believe that the links that I have provided below will answer your
questions about internationalization, error handling, and best practices for both. I haven't really seen any good articles that cover these subjects
together but I think that if you read through these you will be able to
combine both aspects successfully.

I hope this helps!

-------------------
---Exception handling (look at the bottom for Localization)
http://msdn.microsoft.com/library/de...ceptdotnet.asp
http://msdn.microsoft.com/library/de...asp?frame=true
---Internationalization/Localization
http://msdn.microsoft.com/library/de...loctoolkit.asp
http://msdn.microsoft.com/library/de...plications.asp
http://msdn.microsoft.com/library/de...tiondesign.asp -
Best Practices
http://msdn.microsoft.com/library/de...server2000.asp - Sql Server 2k

Nov 16 '05 #7

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

Similar topics

1
by: Abelardo Vacca | last post by:
Hello, I am currently in the process of switching our application to a N-Tier model with .NET. One of the aspects we want ot get right from the start not to worry about it after is the...
10
by: Steven T. Hatton | last post by:
I read Stroustrup's article of the day: http://www.research.att.com/~bs/C++.html Programming with Exceptions. InformIt.com. April 2001. http://www.research.att.com/~bs/eh_brief.pdf Some of...
1
by: SHC | last post by:
Hi all, I did the "Build" on the attached code in my VC++ .NET 2003 - Windows XP Pro PC. On the c:\ screen, I got the following: Microsoft Development Environment An unhandled exception of type...
6
by: Jesper Ordrup Christensen | last post by:
Say I've created a piece of code that involves both sql, io and some number conversions. Being a responsible developer I have tried to catch all of the exceptions - but how can I be sure? Is...
44
by: craig | last post by:
I am wondering if there are some best practices for determining a strategy for using try/catch blocks within an application. My current thoughts are: 1. The code the initiates any high-level...
3
by: ECathell | last post by:
I have an exception that is being caught and handled correctly in my VS IDE. However the compiled version throws an unhandled exception when it reaches that point...here is some code.... this is...
43
by: Shehab Kamal | last post by:
Which approach is better: 1) Use a method that returns true/false (the method will log the exception that lead to false using log4net for example) OR 2) Use a method that returns void and throws...
3
by: =?Utf-8?B?SGVtaWw=?= | last post by:
Hi, I have written a web service for accessing data from a database. I have a method in the webservice which returns a dataset. I am trying to implement error handling by using the...
18
by: Bart Friederichs | last post by:
Hi, I was just browsing the C++ FAQ and stumbled upon the 'mind sets' that are wrong for using C++ exception handling. I am looking for the 'right' mind set. I come from a C background, and...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
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...

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.