Charan V, June 04, 2013 - 5:22 pm UTC
Tom,
Trust me this is not how the actual code is .. Just to make the sameple, I quickly wrote that.
Again thanks for your help,
Charan.
June 04, 2013 - 8:00 pm UTC
I said don't tell me that ;)
why did you have it - just to make the sample??? why add something to an example that
a) makes it harder to debug
b) only takes away from the example, doesn't add anything
c) added keystrokes and lines of code to something that could have been smaller
??? It must be a practice ingrained in the code at your site "all blocks of code MUST have an exception handler" or something similar. A block of code like that doesn't just pop out of nowhere!
Just saying, review your exception handling - if you have anything similar to that in real code - get rid of it. You use a when others
a) to release a resource - like a file handle or something - that doesn't automagically release itself. then you re-raise it
b) to log an error using an autonomous transaction. then you re-raise it.
and that is about it.
at least this when others does have a raise in it...