Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error handling #70

Open
phillip-le opened this issue Jul 29, 2024 · 0 comments
Open

Error handling #70

phillip-le opened this issue Jul 29, 2024 · 0 comments
Labels

Comments

@phillip-le
Copy link
Owner

  • 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant