4 ms·
> "The key takeaway here is that an exception cannot be ignored or forgotten; if we have an exception, it must be dealt with." but a good way to deal with exce
by jcelerier 7y ago
> "The key takeaway here is that an exception cannot be ignored or forgotten; if we have an exception, it must be dealt with."
but a good way to deal with exceptions (in the very specific case of GUI desktop software, though that works also for server software that handles requests) is to just have a global catch handler at the top of your event loop which logs an error message / displays a message box to your user / does a preemptive backup save of the data in case something is deeply corrupted somewhere and then restarts the event loop.