DEV Community

Discussion on: Code Smell 132 - Exception Try Too Broad

Collapse
 
codenameone profile image
Shai Almog

I'm not sure if I would agree with that as a general rule. The whole idea of exception handling is to propagate exceptions sometimes even way up the stack. For many cases I don't even catch exceptions and let them propagate into the generic handling code.

Collapse
 
mcsee profile image
Maxi Contieri

Yes.
This is for the case you want to catch it.
If you just want to propagate this code smell does not apply.