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
kevin
NA
5
0
Class Library Exception Handling
Jul 25 2008 3:49 PM
I have been reading up on exception handling best practices. I'm not sure exactly what is the best way to handle exceptions in the class library. For example, you have a class library with a method that calls private method that updates data in a SQL database so you would normally use a try/catch/finally block to catch the exception if one occurs (very likely). My question is what would the best way to be to handle the exception like re throwing it again with just throw or log the error in a file and return false (bool return method) with a friendly error message? I just want to do it the best way possible.
Reply
Answers (
4
)
Data storage
Multiple DataSets vs. Multiple Unrelated DataTables