ksbecker / kevinandnell.com

My personal website featuring .NET tech
https://me.kevinandnell.com
0 stars 0 forks source link

Add discriminated union responses instead of throwing errors #24

Closed ksbecker closed 1 month ago

ksbecker commented 1 month ago

In my contact form service, I throw errors if there's a problem. That makes it difficult to handle problems. I should be returning a discriminated union, like OneOf.

ksbecker commented 1 month ago

https://www.youtube.com/watch?v=YbuSuSpzee4&ab_channel=NickChapsas

ksbecker commented 1 month ago

https://www.youtube.com/watch?v=7z-xjijYfcI&ab_channel=NickChapsas