Announcement Announcement Module
Collapse
No announcement yet.
how to customize Exception catching and logs Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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

  • #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?

    Comment

    Working...
    X