PWI pillar

Programming to Exceptions

Failure as a designed path rather than an afterthought. Validation at boundaries, and what catching an exception obliges you to do.

Read the articles

Read Parts 1, 2, and 3 in order: method contracts, exception design, then logging and progress. The concepts apply across languages; the worked examples use C#.

Related guidance: Method Design and Gateway Design.

All of PWI