Why throw early and catch late?

Stack Exchange

This Q&A is part of a weekly series of posts highlighting common questions encountered by technophiles and answered by users at Stack Exchange, a free, community-powered network of 100+ Q&A sites.

here asks:

There are many well-known best practices about exception handling in isolation. I know the “do’s and don’ts” well enough, but things get complicated when it comes to best practices or patterns in larger environments. “Throw early, catch late” — I’ve heard many times and it still confuses me.

Read 26 remaining paragraphs | Comments

Ars Technica » Technology Lab