Ask HN: Best practices for error handling?

2 points by vishaalk ↗ HN
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.8 ms ] story [ 11.4 ms ] thread
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.