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

Move AccountDoesNotExistError to domain #1106

Merged
merged 1 commit into from
Feb 5, 2024
Merged

Conversation

fmrsabino
Copy link
Contributor

While AccountDoesNotExistError is an error that originates from the DataSource, these errors can and should also be used in the Domain layer.

Since the Domain layer is the one specifying the interface for the DataSource to implement, then specifying that the error can also be thrown by implementations of the interface, hints that it is a domain-specific error.

While `AccountDoesNotExistError` is an error that originates from the DataSource, these errors can and should also be used in the Domain layer.

Since the Domain layer is the one specifying the interface for the DataSource to implement, then specifying that the error can also be thrown by implementations of the interface, hints that it is a domain-specific error.
@fmrsabino fmrsabino self-assigned this Feb 5, 2024
@fmrsabino fmrsabino requested a review from a team as a code owner February 5, 2024 15:32
@fmrsabino fmrsabino merged commit 61b8a41 into main Feb 5, 2024
16 checks passed
@fmrsabino fmrsabino deleted the move-account-error-domain branch February 5, 2024 16:53
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

Successfully merging this pull request may close these issues.

None yet

2 participants