News for hackers. Stuff that matters.

Ask HN: Best practices for error handling?

Is there a definitive resource for solid error and exception handling? Everywhere I read, error handling is the primary reasons systems fail, yet every language is doing error handling differently. I would be interested in hearing peoples' opinions and links to resources that discuss the pros and cons of different types of error and exception handling.
( 1 comment | 2 points | on HN )
Re:Ask HN: Best practices for error handling? by brudgers on Friday July 27, 2018 @12:27PM (#17627146)
I think Erlang's approach is the only properly engineered one. YMMV, because Erlang is not necessarily the best language for implementing any particular business logic.