The only two cases when you should handle exceptions

Exceptions are often handled indiscriminately, but there are only two cases when you should do it. Here’s how to make the best use of exceptions.