
#79 Domain-Driven Design and Moduliths with Oliver Drotbohm
Happy Path Programming
00:00
The Importance of Modeling Exceptions
The example I usually give there is like, if you have, let's say, an e-commerce application and you have to keep track of stock of products. So make, turn this into a signal that after like you, you cross a certain threshold, you'd have to do other business activity to solve that problem. The easy naive approach is just to throw the exception and let the caller deal with it. That's not necessarily in line with what the business needs are.
Transcript
Play full episode