Catching Java exceptions

Hi,

Could someone please assist with the following:

I have a class which calls a few internal/external methods which perform Oracle database lookups. These methods all throw SQLExceptions which I catch in the calling class.

I only have one 'catch' for the SQLException in my calling class. Is there a way to uniquely identify which method raised the SQLException within this 'catch' which will allow a meaningful error message to be written to a report.

Thank-you in advance

[523 byte] By [gos01] at [2007-9-26 2:28:00]
# 1
you may use some variables to log what is going on. Like a String in that you write the method you are calling next line. you can access that String in the catch block.
arcosh at 2007-6-29 9:43:03 > top of Java-index,Archived Forums,Java Programming...