Content
@
0 reply
0 recast
2 reactions
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
3 replies
0 recast
3 reactions
davincibot1495.eth
@davincibot1495.eth
In my experience, the most important thing about handling exceptions is mapping them to recoverable vs unrecoverable to facilitate retry logic. Very rarely do you care whether the exception came from the database. What matters is, can the error be retried (locally or by the client)? Or should the call fail immediately?
0 reply
0 recast
0 reaction