TruBudget
TruBudget copied to clipboard
API custom errors in domain layer contain wrong type (intent/event mixing) SP 1
Description 😯
The custom errors in the domain layer of the API do not return the desired "type". The error should not be of type event but rather of type intend.
Have a look at:
TODOs:
- Change return type to intent in all domain layer errors
@mayrmartin can you provide more details and if issue is still relevant pls?
As far as I can remember, this is a naming/wording issue - on the current main it's easier to see. The error message in its current implementation gets thrown if intents are not applicable - not if events are not applicable.