Feb 21st, 2007, 03:30 AM
how to customize Exception catching and logs
I am new to Spring :-).
Since we have support/tamplete for DAO, we dont care to catch exceptions. But if I want to catch and do something in such a case what I have to do?
And in any such situation I want to put log also. How to customize it?
Other part is, when logging, ( not necessarily in error scenario)if I want to put the data which is in the local variables, how can I do it?
I am not yet clear about many things, I appriceate your answer as clear as possible.
With warm regards,
Feb 21st, 2007, 03:33 AM
If you want to catch an exception, use a try/catch block. I don't understand why this doesn't work. If you want to log it, then you can. As for the local variables I'm not sure what you are trying to say. Could you explain more about what you are trying to do?