-
Feb 21st, 2007, 03:30 AM
#1
how to customize Exception catching and logs
Hi All,
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,
PC
-
Feb 21st, 2007, 03:33 AM
#2
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?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules