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.