Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

What about the ones you can recover from? You don't want to crash the entire application every time there's an exception!


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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: