issues
search
phillip-le
/
phillip-le.github.io
https://phillip-le.github.io/
1
stars
0
forks
source link
Error handling
#70
Open
phillip-le
opened
3 months ago
phillip-le
commented
3 months ago
differentiate between expected and unexpected
You basically always want to log so you have to deal with unexpected errors every time even if all you do is catch log and throw
HTTP Datasource pattern: check if it's a 2xx, runtime check the data, return
Either monad, try/catch
https://github.com/Sairyss/domain-driven-hexagon