2 ms·
> 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
by 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";