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

You don't have to have Error variants if you don't care about their type.

You cannot catch a StackOverflowException or an OutOfMemoryException. All you do is log it & restart the app.

Once could split it into retryable errors and non-retryable ones. Like a DB disconnect, that can be retried.

BUT to be fair, that's not logic that belongs in the business.



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

Search: