“It might be better to actually not handle exceptions”

What? Is it better to not handle EXCEPTIONS??? Your first thought might be: “He must be kidding!” Well – these are actually the words of Tom Kyte in an article in Oracle Magazine (Nov 2011). The problem actually starts when developers catch execptions and don´t propagate (raise) this any furter. Tom states: “The fact is that most exceptions should never be caught in PL/SQL, or if they are, they should be immediately reraised. However, in real life, I see the opposite happening in many cases.”

Read the article: “On Collaboration, Testing, When, and Why”, by Tom Kyte.

Post a Comment

Your email is never published nor shared. Required fields are marked *