Results 1 to 2 of 2

Thread: how to customize Exception catching and logs

  1. #1
    Join Date
    Feb 2007
    Posts
    3

    Default 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. #2
    Join Date
    Sep 2006
    Location
    UK
    Posts
    8,424

    Default

    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
  •