Pragmatic error handling

A simple and practical approach to error management.

Luís Soares
CodeX
Published in
10 min readFeb 9, 2022

--

Photo by Sigmund on Unsplash

I’ll explore some patterns and antipatterns regarding creating, throwing, and handling exceptions. These are the most common problems I’ve encountered before.

Don’t centralize — Avoid exception hierarchies

--

--

Luís Soares
CodeX
Writer for

I write about automated testing, Lean, TDD, CI/CD, trunk-based dev., user-centric dev, DDD, coding good practices,