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

In every project I have an unchecked CantPossiblyHappenException type (usually with a better name ;)) that is thrown in such cases. This documents that the developer thought this condition can’t occur, while still escalating it should it nevertheless occur.


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

Search: