Refactoring 035 - Separate Exception Types
TL;DR: Use separate exception hierarchies for business and technical errors.
Problems Addressed ๐
Confused contracts
Mixed responsibilities and error treatment
Difficult handling
Poor readability
Misleading signals
Exceptions for expected cases
Ne...
maximilianocontieri.com3 min read