Hacker News new | ask | show | jobs
by breadwinner 396 days ago
What about the ones you can recover from? You don't want to crash the entire application every time there's an exception!
1 comments

You usually wouldn’t crash the entire application, the request that causes the issue will return a 500 error. (Or equivalents for non-web environments.)
Some exceptions are not recoverable and may cause 500 error. Others such as FileNotFound are recoverable, for example by reading the file from an alternate location.