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

Migrate data source errors to domain #1301

Open
iamacook opened this issue Mar 14, 2024 · 0 comments
Open

Migrate data source errors to domain #1301

iamacook opened this issue Mar 14, 2024 · 0 comments

Comments

@iamacook
Copy link
Member

We currently have a layer of abstration for data source errors. We should remove this and instead map errors to domain-specific ones, e.g. "non-existent Safe address" to improve errors and reduce complexity.

On the client side, we can have global, domain-specific error filters (reviewing those ones that we currently have).

The email domain is a good point of the reference. The data source (database) knows about the domain, throwing domain-specific errors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant