Content pfp
Content
@
0 reply
0 recast
2 reactions

iSpeakNerd 🧙‍♂️ pfp
iSpeakNerd 🧙‍♂️
@ispeaknerd.eth
rapidly learning that i need a standardized error method with bubbling. are the errors from the database, from the biz logic or from the api query? would like error context to bubble appropriately. am very sure i am currently doing it on hard mode with throws that don't communicate context well
5 replies
0 recast
4 reactions

Ben Adamsky 💭 pfp
Ben Adamsky 💭
@ba
I suggest building out a simple custom error handler class that includes types (db/biz/api) code and metadata Way better than raw throws, you'll always know the source and context Have claude generate an initial version then tweak based on your app's architecture
0 reply
1 recast
1 reaction