TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
dc
NA
663
0
C#.net 2008 exceptions
Jun 13 2010 9:38 PM
I have a question about exceptions. I am under the impression that almost ever method or group of methods should have try-call block(s). I am also under the impression that the 'last' final group of code that is executed should have a final try-catch block.
Do you think an entire application (or at least each class) should have a 'final' try-catch block setup for any unexpected errors that could occur? If so, how would you set this up? Would you 'throw' the errors to the final exception block?
If not can you tell me why you would not have a final try-catch block?
When I look some C#.net 2008 windows applications that some contractors wrote at my job, I can not find any try-catch blocks. Would you think there would be a reason for this? Is there a 'new way' for checking for errors? Do you think I may want to over use try-catch blocks?
Reply
Answers (
1
)
Need help to built XML
webproxy problem