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
Jitendra Athrasser
NA
1
0
Exception handling
May 16 2006 6:27 AM
Hi everyone,
I am really having confusion when dealing with exceptions.I have a common exception class which publish the exception to the database and also generates a log report.
Now,I was told to put
try{}catch
block only in the main methos and not in all the submethods.
Suppose I am having a method like
test()
{
some code
bind();
}
bind()
{
some code;
}
if I put try -catch only in the test() method it will indeed catch all the exceptions ,but will not give the line number if its been occurred in the method bind(),for that I have to put try-catch block in bind() method itself ,which iwas told not to do(...And if bind() is calling another method and there an exception occurred).Please give suggestions..Or how do you guys deals with the situation.
Reply
Answers (
0
)
Name of CustomDocumentProperties
Datagrid control problem