Python & FastAPI: Slaying Exceptions Like a Pro 😎
Handlers and Middlewares
So, last week, I was sent on a wild expedition into the treacherous realm of Python and FastAPI. My mission? To whip up a way to handle exceptions centrally rather than everywhere in the codebase.
How hard can it be?
At least that’s what I thought until… But hey, I'm not the kind to back down from a challenge, So here is how I tackled it…
What do you think? Do you have thoughts or questions, or do you want to say hi?
Don't be shy; hit me up in the comments or shoot a reply to this newsletter. 📣