3 ms·
Not really a point I read in TFA but I agree. Catching just to log something is generally wrong.
by fuzzy2 5y ago
Not really a point I read in TFA but I agree. Catching just to log something is generally wrong.
- simion314 5y ago> Catching just to log something is generally wrong Yes, but you should catch as soon as possible (or validate stuff as soon ass possible) and re-throw with a better error message if possible. You will thank yourself when some problem appears and instead of a random "errorcode 123" you get a detailed message like "Operation Xyz failed with errorcode 123";