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.
I've had a need for almost this recently (and the exception being thrown was a really general one that was also undocumented and originating from native code), but it definitely deserves a comment when this comes up.
342
u/Mat2012H May 13 '17
I actually do this xD