try .. catch blocks - when to use

Posted by Konrad on Stack Overflow See other posts from Stack Overflow or by Konrad
Published on 2010-04-29T12:43:52Z Indexed on 2010/04/29 12:47 UTC
Read the original article Hit count: 205

Filed under:
|
|
|

I have always been of the belief that if a method can throw an exception then it is reckless not to protect this call with a meaningful try block.

I just posted 'You should ALWAYS wrap calls that can throw in try, catch blocks.' to this question and was told that it was 'remarkably bad advice' - I'd like to understand why.

Thanks!

© Stack Overflow or respective owner

Related posts about c++

Related posts about try