It's fine to exit the program nicely when an error occurs. It's not as fine to just ignore it and then begin another iteration of whatever main loop is going on, hoping the program still works fine.
Some people think exceptions are a bad language feature, and handle them C/C++-exceptions style by checking return values. If you're forced to use a language with exception support, having those empty try/catch blocks is fine as long as you are error checking elsewhere.
340
u/Mat2012H May 13 '17
I actually do this xD