3 ms·
I think many developers believe they must avoid crashes at all costs and add try/catch blocks to catch the Exception base class, which initially sounds like a g
by wayne 18y ago
I think many developers believe they must avoid crashes at all costs and add try/catch blocks to catch the Exception base class, which initially sounds like a good idea but usually just hides subtle bugs which are 10x harder to fix later.
This article does a great job of classifying exceptions and explaining when you should, and shouldn't, add try/catch blocks.