News for hackers. Stuff that matters.
Re:Don’t Use Try/Catch (2010) by drdaeman on Saturday December 28, 2013 @01:02PM (#6975603)
Please, don't even think about such approach if you handle many long-living tasks (like, say, client connections) in a single OS-level unit of execution (process or thread) and the error/exception happens for a single task but crashes the whole stack.
Re:Don’t Use Try/Catch (2010) by V-2 on Sunday December 29, 2013 @09:48PM (#6982745)
Just make sure they are caught and handled. Your single task should not allow any exceptions to bubble up all the way to the whole stack. Whether they are your own or not.